Dolphin, the GameCube and Wii emulator - Forums
Savestate uncompressed - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion)
+--- Thread: Savestate uncompressed (/Thread-savestate-uncompressed)

Pages: 1 2


Savestate uncompressed - student - 11-17-2015

Is it possible to have an option to save uncompressed savestate ?
In alternative is it possible to have an utility/tool to uncompress a compressed savestate ?

I tested the LZO decompressor that are free in the wild but none of them recognize the savestate file...

Thank you very much for your attention !


RE: Savestate uncompressed - JosJuice - 11-18-2015

You can set whether compression is enabled by calling State::EnableCompression (in Core/Core/State.h). There is currently no code in Dolphin that does this.

If you want to load a compressed savestate, try removing the 18-byte header before you decompress it.


RE: Savestate uncompressed - student - 11-18-2015

Thank you really much for your fast answer !!

You mean that, by default, .sav files are NOT compressed ?

I need to convert a compressed .sav in an uncompressed form... but i can also make another savestate but i absolutely need it in an uncompressed form (need to get some clear data from ram).

If you can have a look, the file I need to be uncompressed is this (I don't know if it is compressed or not, how to see it ? I cannot find LZO header anywhere): https://www.dropbox.com/s/r203ssfnvsecpei/2.7z?dl=0


RE: Savestate uncompressed - degasus - 11-18-2015

Oh, these files are still very ugly to work with. We have *some* markers within it, but everything else must just be parsed in the same way as dolphin uses it (a bytes for A, b bytes for B, ..., finally x bytes for my wanted data X). I guess it's easier to just load the state within dolphin, and add a breakpoint on successfully loading a state. So you can just extract all required data from your debugger.


RE: Savestate uncompressed - student - 11-18-2015

Mmmmmm i tested Dolphin in debug mode and I think I found what I was looking for but... how can I save a dump of the memory i can see in debug mode ? If I press DUMP MRAM or DUMP EXRAM nothing happens... can someone explain me how it works ?


RE: Savestate uncompressed - JosJuice - 11-18-2015

(11-18-2015, 01:36 AM)student Wrote: You mean that, by default, .sav files are NOT compressed ?

No, they are compressed by default. The EnableCompression function is both for enabling and disabling compression.


RE: Savestate uncompressed - student - 11-18-2015

I got the memory in clear under dolphin (debug mode), how can i dump it to a file ?
[Image: iav1dtm.png]


RE: Savestate uncompressed - degasus - 11-18-2015

Either fix the button (I haven't used it), or hack in a simple fwrite(), or just use your debugger to dump the memory region.


RE: Savestate uncompressed - student - 11-18-2015

Is there any super-guy who can provide an .exe hacked version that is able to dump the memory ?
I used ArtMoney Pro but the saved memory is not the one I am seeing... Sad


RE: Savestate uncompressed - student - 11-18-2015

Well, just to say THANK YOU ALL for the suggestions !
I managed to get what I want ! Using internal Windows 7 dump process memory feature Wink

THANK YOU !