melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.13k stars 512 forks source link

(Feature Request): Add support for .dst/.duc files when importing save files. #1397

Open GamIsKewl opened 2 years ago

GamIsKewl commented 2 years ago

It would be very useful to add support for .dst/.duc files when importing save files, as people may not have their save files backed up as .sav, .dsv, or .bin files, and instead having them saved as a .dst or .duc file.

RSDuck commented 2 years ago

where exactly do .dst and .duc files come from? Are they just (padded) raw savefiles?

poudink commented 2 years ago

looks like DUC is an action replay thing. no clue what DST is.

CasualPokePlayer commented 2 years ago

dst might be referring to DeSmuMe savestates (using "Save State As..."). duc seems like a sav file with some header? A lot of duc's seem to be floating around gamefaqs so probably not to hard to find them.

Arisotura commented 2 years ago

.duc files seem to contain the raw savedata after 0x1F4 bytes of whatever crap. I'd need to check some other files to be sure.

.dst files are, afaik, DeSmuME savestates, which use specific format and contain all DeSmuME's internal state. converting these to melonDS savestates would be super impractical, however it might be possible to extract the raw savedata from them.

patataofcourse commented 2 years ago

(honestly for DeSmuME savestates it's probably far easier to load the savestate in DeSmuME, save in the game, and export the save)

Arisotura commented 2 years ago

good point