R
Reesy
Guest
Thanks for all the advice, sync() will now be appearing in a DrMD near you. I might get chance to fix this and a couple of other bugs tonight. I'll let you all know
Just to confirm that it works. I opened Tilematch, played for one minute, saved my score, and immediately after that, I turned GP2X off without quitting. After starting again, that score was there. Thanks!white posted on Dec 12 2005 at 07:49 PM said:fclose() will perform fflush() automatically - so your buffered data will be written to the file system. However, that's not the problem - what you really need to do is call sync() after fclose(), which causes all filesystems to flush their writeback caches to the physical device.
Tetedeiench posted on Dec 12 2005 at 02:13 AM said:Heya guys,
I'm having trouble with DrMD. I am launching a rom ( for instance, Sonic3), playing a tad, then making a savestate ( L+R to go back in menu, i select "save state", choose slot0, menu says slot is used, perfect, fine).
I can then load it just fine, it works flawlessly.
However, sometimes, when i load back DrMD, it says that no savestate is used... i know somebody which had the same bug, all savestates disappearing.
I have trouble reproducing it though ( sorry reeesy, can't give you more info).
Anyone else has the very same problems ?
God Ginrai posted on Dec 12 2005 at 10:38 PM said:Tetedeiench posted on Dec 12 2005 at 02:13 AM said:Heya guys,
I'm having trouble with DrMD. I am launching a rom ( for instance, Sonic3), playing a tad, then making a savestate ( L+R to go back in menu, i select "save state", choose slot0, menu says slot is used, perfect, fine).
I can then load it just fine, it works flawlessly.
However, sometimes, when i load back DrMD, it says that no savestate is used... i know somebody which had the same bug, all savestates disappearing.
I have trouble reproducing it though ( sorry reeesy, can't give you more info).
Anyone else has the very same problems ?
First off, why are you using Savestates with Sonic 3? I'm pretty sure that ROM can save onto itself, no save state required. (If it's not a dirty rom that is)
Reesy posted on Dec 12 2005 at 10:41 PM said:Because you would have the same problem. I never use sync(), so even after saving a sram file, if you switch the gp2x before linux decides to actually write the file to disk you will be buggered.
I've just tested sync and it looks like it fixes the problem. I'll release another version a bit later then you lot can do your worst to it
FluffyPanda posted on Dec 13 2005 at 02:07 PM said:I wonder why GPH didn't mount the SD with the "-o sync" option. That would have avoided all these problems.
Anyway, great job Reesy