-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hiscore saving #378
Comments
You have a good idea, but the problem is that the drivers need to have HiscoreReset() called on reset, If we tweaked hiscore.cpp to allow all drivers to have hiscore as long as they're in the dat: let's say if the user presses F3/Reset and HiscoreReset() is not called, then they close the emulation, all their hiscore data will be lost as the game loads the defaults on reset. I might be able to hook the input and call HiscoreReset from there. kinda hacky, but, the only other option is to add HiscoreReset() to all existing drivers that are missing it. |
I came up with another idea "ignore the driver flags" |
well i was going to suggest to add a global variable and set say found_cheat when processing the dat file. to check if a cheats was found and check for this variable on reset. You know the code better than me though I was just originally just going to send a message saying a cheat was found add flag to driver |
Good idea ! Removing the |
barbudreadmon, thanks, I'll try to impliment it today. Just something to remember (and sorry in advance for the lecture...) |
Hey Dink, is the BDF_HISCORE_SUPPORTED funtion scrap now or can i submit changes for games i have tested and made? |
|
👍Thanks |
What if we had an additional check in I'm still studying the code, but look at this, hopefully you get the idea:
|
It would be a good idea, but the data is not deterministic enough to count on that to detect a reset. best regards,
|
If they don't then there is no harm in saving the same data again in the hiscore file, because is still valid (no data loss). Btw i definitively see your point in avoiding hackish solutions... but i'd still like to do some experiments with this, do you know a game that does these self soft-resets? |
We won't remove the Also, we don't think it's a FBNeo issue, from looking at mame debugger, those address ranges for astdelux in hiscore.dat are very suspicious (game timers ?), there are also concerning comments about them in hiscore.dat, and the game doesn't need this to save hiscores (earom is handling this already). |
I was speaking to @barbudreadmon on the retropie forums and he told me to post the issue here. There is probably a good reason for whats going on so thought i would ask.
the code here
FBNeo/src/burn/hiscore.cpp
Lines 150 to 158 in db14c31
has two conditions to set hi scores the problem is if you enable hi scores and its in the dat the driver flag check will stop it working even if this option is enabled.
Is there a reason for this or could adding and if (!(BurnDrvGetFlags() & BDF_HISCORE_SUPPORTED) && !EnableHiscores ) Allowed = 0; be used or does every driver need updated
The text was updated successfully, but these errors were encountered: