emufreak / iAmiga

iAmiga sources
44 stars 17 forks source link

Emulator states don't restore hd state #48

Open simontoens opened 8 years ago

emufreak commented 7 years ago

Hi Simon. I'm working on this and will commit soon.

simontoens commented 7 years ago

Great, I am curious to see what the fix is.

emufreak commented 7 years ago

Hi Simon. I just backported savestates.cpp from uae4all2. I'm not sure it makes any difference. Before the chances i used savestates with Monkey Island 2 on HD. Sometimes it worked sometimes it didn't and I didn't have the chance to test a lot with the new version yet.

simontoens commented 7 years ago

I looked at savestates.cpp from uae4all2 a while back and I didn't see anything obvious in there about saving hd state. Still, good that you backported it just in case.

emufreak commented 7 years ago

Hmm. Last few times savestates from HD worked for me. But it might be luck.

Especially because i found this in the comment sections of savestates.cpp

No difference in the latest uae4all2 concerning this comment by the way

simontoens commented 7 years ago

Thanks for the update. That comment is pretty clear. But it is kind of strange it works sometimes...

simontoens commented 7 years ago

I wonder if this has to do with correctly re-establishing the path of the hd file after iAmiga has been re-installed on a device? Does saving/restoring an hd state actually fail if you do not re-install iAmiga on the device? Or is the success/failure pattern just random?

simontoens commented 7 years ago

Just played with this a little, it seems like hd states work as long as the right hd is manually mounted before the state is reloaded?

simontoens commented 7 years ago

So maybe the fix is to track the mounted hd when saving a state and to mount it again when the state is restored? @emufreak does that sound right? Or did you run into other issues with this?

emufreak commented 7 years ago

While I do think this helps the problem doesn't go away completely. Sometimes everything works fine. Sometimes I can play fine but when I try to save my progress I get a guru meditation. I think the problem has to do with saving on Harddisk.