RetroArch

RetroArch

RTC integration into Gambatte, or porting a savefile?
I have a couple of RA builds on my computer at the moment, since I didn't know they had a Steam Page and I've been playing around with RetroAchievements (which references back to RetroArch a ton) for a good couple years. For whatever reason, I decided to do a RetroAchievement run of a GBC game that would track with the GameBoy's clock on original hardware, using Gambatte in LibRetro. I thought I would be able to deal with the clock not updating in those times LibRetro wasn't active when I first realized that was the case, but now I'm finding that it's an insufferable constraint to try and work inside.

To that end, I see two possible solutions to my dilemma, neither of which seems to work terrifically for my aims.

1. I figure out how to get Gambatte to keep the RTC synced in LibRetro, even when I close and reopen the game. This shouldn't be difficult, since one of the first things Gambatte does on boot is to check the system clock, but Gambatte doesn't seem to create an RTC file, instead making a single SRAM file.

2. I port that SRAM file over to RetroArch where I can use Sameboy to track with the internal clock. I renamed the SRAM file to an SRM file (porting it back into Libretro and renaming it to SRAM did load all the original data, so I know the file didn't corrupt), and... the file didn't load as pre-existing save date into RetroArch.

If either one of these could work better and I'm just missing something about how to make this work, advice would be greatly appreciated, especially as the only advice I can find online about getting Gambatte to track with a real-time clock is oriented around Raspberry Pi, which is very much not the hardware I'm working with.

(Also, for the purposes of RetroAchievements, I am on hardcore mode. I have a sneaking suspicion that could preclude loading previous save data in the way I'd want in option #2, but I figure if everything I've done to that point on the original save was in hardcore mode, there's no foul, and would like to try and make it work.)