• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 31 32 33 34 35 ... 116 Next »

Savestate uncompressed
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Savestate uncompressed
11-17-2015, 11:51 PM
#1
student Offline
Junior Member
**
Posts: 11
Threads: 2
Joined: Nov 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 !
Find
Reply
11-18-2015, 12:15 AM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,839
Threads: 7
Joined: Oct 2014
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.
Find
Reply
11-18-2015, 01:36 AM (This post was last modified: 11-18-2015, 01:39 AM by student.)
#3
student Offline
Junior Member
**
Posts: 11
Threads: 2
Joined: Nov 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
Find
Reply
11-18-2015, 02:13 AM
#4
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,827
Threads: 10
Joined: May 2012
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.
Find
Reply
11-18-2015, 02:43 AM
#5
student Offline
Junior Member
**
Posts: 11
Threads: 2
Joined: Nov 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 ?
Find
Reply
11-18-2015, 02:50 AM
#6
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,839
Threads: 7
Joined: Oct 2014
(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.
Find
Reply
11-18-2015, 03:00 AM
#7
student Offline
Junior Member
**
Posts: 11
Threads: 2
Joined: Nov 2015
I got the memory in clear under dolphin (debug mode), how can i dump it to a file ?
[Image: iav1dtm.png]
Find
Reply
11-18-2015, 03:04 AM
#8
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,827
Threads: 10
Joined: May 2012
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.
Find
Reply
11-18-2015, 03:18 AM
#9
student Offline
Junior Member
**
Posts: 11
Threads: 2
Joined: Nov 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
Find
Reply
11-18-2015, 03:54 AM
#10
student Offline
Junior Member
**
Posts: 11
Threads: 2
Joined: Nov 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 !
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode