You are not logged in.
Pages: 1
I'm trying to set up a mechanism to automatically sync my saves between emulator and handheld. Part of that process, then, is automatically converting the saves from DeSmuME into something that my DS can read off the R4, and back again.
I know DeSmuME has its Import/Export functions, and I also found a web-based save format converter, but both of those are rather manual processes. Is there (or could there easily be) a CLI converter between DSV and raw SAV, so I could simply call it with a script?
(I also considered asking for an "Export on Close" feature, but then I realized that'd only cover half my needs here. And I can't think of how you'd go about efficiently importing automatically within DeSmuME, so that's how I landed on CLI. I would still gladly take this kind of solution, though, it'd be less work for me.)
Thanks!
Offline
dsv is a raw save with a footer. open it up in a hex editor and snip where it says snip at the end
Offline
What information is in the footer, so that I can do it in the opposite direction as well?
Offline
You know what information is in the footer because you just cut it out. Put it back. If you really need to know the details. look at struct BackupDeviceFileInfo in mc.h
Offline
I'll take a look there, thanks! I expect there will be times this happens first in the opposite direction, so I won't have the clipped footer handy. (though I suppose I could just manually Import on those occasions and let the system handle it from there...)
Offline
importing sav works better if you have the advanscene database. I cant remember if we ship with that. in general the size of savedata can't be reliably determined from the game or the incoming raw sav. the whole situation is a mess.
Offline
Pages: 1