desmume icon indicating copy to clipboard operation
desmume copied to clipboard

Handle `.sav` file throught frontend interface

Open Konstantysz opened this issue 9 months ago • 4 comments

State your operating system:

Windows/Linux

DesMuME version

e.g. 0.9.13 or git master

Isse

Hi, I love this emulator and I use it for at least 15 years. I am trying to use your API desmume/src/frontend/interface/interface.h for my project. Is it possible to load a backup memory .sav file throught this API? If not, would it be big modification to add it?

Konstantysz avatar Mar 28 '25 18:03 Konstantysz

As I can see, frontends use savestate_load in desmume/src/saves.h

thesourcehim avatar Mar 31 '25 05:03 thesourcehim

i think he's refering to raw sram battery saves, i added that funtionality as "file -> import backup from" in the gtk2 port. that's useful to transfer saves back and forth between a flashcart and the emulator. (the forth part is afaik only implemented in the win32 gui so far, but maybe also in the OSX gui)

rofl0r avatar Mar 31 '25 13:03 rofl0r

i think he's refering to raw sram battery saves, i added that funtionality as "file -> import backup from" in the gtk2 port. that's useful to transfer saves back and forth between a flashcart and the emulator. (the forth part is afaik only implemented in the win32 gui so far, but maybe also in the OSX gui)

Yes, this is exactly what I'm refering to! Do you think it would be possible to implement it? I may do it myself, but I would need a hint 😄

Konstantysz avatar Apr 01 '25 08:04 Konstantysz

but I would need a hint

didn't i just give it to you? look at the gtk2 code that handles the just mentioned import menu item.

rofl0r avatar Apr 01 '25 15:04 rofl0r

Added in #932

Konstantysz avatar Nov 12 '25 11:11 Konstantysz