disassembled from:
https://www.infine.st/
https://www.romhacking.net/hacks/4450/
Thank you infinest for the original patch.
"This patch allows the player to change the real-time clock while in the Pokegears clock menu.
Simply press up to advance and down to turn back the time.
Holding the A button allows you to change it faster."
The disassembly uses RGBDS's RGBLINK overlaying features.
Thanks to marcobledo's batteryless patcher for an example how to use it.
- get a pokemon crystal/gold/silver rom and save it to roms/"romname"/input.gbc
- install rgbds and flips
- run make
instead of running make, you can build it manually:
rgbasm -opokegold_rtc.o --define _RTC --preinclude roms/pokegold/settings.asm src/main.asm
rgblink -o pokegold_rtc.gbc -O roms/pokegold/input.gbc pokegold_rtc.o
rm pokegold_rtc.o
rgbfix -p0 -v pokegold_rtc.gbc
flips --create --bps roms/pokegold/input.gbc pokegold_rtc.gbc pokegold_rtc.bps
to build a new target you need to do the following things
- create a folder called roms/"romname"
- copy the baserom to roms/"romname"/input.gbc
- create a roms/"romname"/settings.asm file
- rtc patches are only created, if _RTC is found in settings.asm
- batteryless patches are only created, if _BATTERYLESS is found in settings.asm