Homebrew RTC Manipulation with libnds

MichiS97

"Leftist snowflake milennial"
OP
Member
Joined
Jun 14, 2011
Messages
1,817
Trophies
2
Age
26
Location
Munich
XP
3,629
Country
Germany
Hi guys,

as you all know, some games have some time travel blocks included, like the Gen 4 Pokemon games which won't let you use the Pal Park for 24 hours if you have changed your system date.
On the 3DS, such timegates can be bypassed by using homebrews such as RTChanger to actually change the "hardware clock" of the 3DS itself. That doesn't help you with Pal Park though, as a 3DS obviously doesn't have a GBA slot.

Now, I'd like to create a similar tool for the DS for the purpose of bypassing these kind of timegates and as a general programming exercise. I have some experience with C and C++ and coding on embedded systems. However, I don't quite understand how the DS works yet. AFAIK, the RTC can only be controlled by the ARM7, right? How would I be able to let the user select a time and date the RTC should be set to and have that information actually be sent to the ARM7?

I'd really appreciate some insight into this. Also, if somebody generally knows any good guides on programming on the DS, please let me know :)

Thanks!
 
  • Like
Reactions: alivebacon

MichiS97

"Leftist snowflake milennial"
OP
Member
Joined
Jun 14, 2011
Messages
1,817
Trophies
2
Age
26
Location
Munich
XP
3,629
Country
Germany
Alright, quick update: I figured out how to read the time from the system and how to transfer data between the two CPUs. The problem is now that the "rtcSetTimeAndDate"-function in libnds apparently doesn't work.
 

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,696
Trophies
1
Age
28
Location
Imola
XP
6,926
Country
Italy
Another option would be to backup and restore the clock offset in the eeprom - if I understood the documentation correctly, it's just a record of the time being changed, instead of an actual difference applied to the hardware clock like it is on 3DS?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • S @ salazarcosplay:
    hunter x hunter
  • S @ salazarcosplay:
    he has not allowed anyone to continue it for him for example
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, theres a dragon ball af mod for budokai 3
  • Xdqwerty @ Xdqwerty:
    updated ship of harkinian, gonna install some hd texture pack
  • Xdqwerty @ Xdqwerty:
    I might download rayman revolution for my ps3
  • BigOnYa @ BigOnYa:
    I may try the new ram site, and download more RAM to my Switch. Not sure if ddr3 is the right ram
    for it tho. Edit- no it uses floppy Ram, just like @AncientBoi
    +1
  • Xdqwerty @ Xdqwerty:
    aeiou
  • BigOnYa @ BigOnYa:
    And sometimes Z
  • SylverReZ @ SylverReZ:
    @K3Nv2, MAGA supporters be wearing tin foil hats lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, whats maga?
  • BigOnYa @ BigOnYa:
    It stands for Maniacs Against General Acceptance
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, people rejecting general consensus about stuff?
    +1
  • BigOnYa @ BigOnYa:
    Yup, nuh its really just Trump followers
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, im not american so i dont care about trump
    +1
  • Xdqwerty @ Xdqwerty:
    or us elections
  • BigOnYa @ BigOnYa:
    Me niether, us north Koreans don't care
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    i don't care either, even if i'm american
  • BakerMan @ BakerMan:
    truth be told, i agree with psi, i dislike both candidates, but i'd probably vote trump simply because the economy was better during his presidency
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
  • NinStar @ NinStar:
    people are so dramatic that I can't even tell if they are being serious
    NinStar @ NinStar: people are so dramatic that I can't even tell if they are being serious