Welcome!

Final Burn Neo => FBN Development => Topic started by: Sputnik on January 26, 2021, 10:15:22 AM

Title: how to know if a game has hi score saving support enabled
Post by: Sputnik on January 26, 2021, 10:15:22 AM
Hi guys,
I know that, even if a game is listed in hiscore.dat, it doesn't mean that it save scores with FBNeo. Is there an easy way to know which games have hi-score saving support enabled? If not, where can we find this information in the source code?
Title: Re: how to know if a game has hi score saving support enabled
Post by: dink on January 26, 2021, 02:33:10 PM
In the game lister it will say "Notes: Hi scores supported"

In the driver file, (src/burn/drv/pre90s/d_dkong.cpp), there's an entry for each game - usually near the bottom of the file.  One can usually find it by searching for "dkong" (romset name with "" quotes).  In the column that usually starts with BDF_GAME_WORKING, a tag of BDF_HISCORE_SUPPORTED will mean the game supports hiscores.
If you'd like to mark a game to have hiscore support, just add the "| BDF_HISCORE_SUPPORTED" tag.  Also make sure "HiscoreReset();" exists somewhere in the DrvDoReset() function.

If you need more info just look at how d_dkong.cpp does it or ask :)

best regards,
- dink
Title: Re: how to know if a game has hi score saving support enabled
Post by: telipur on March 20, 2023, 05:16:41 AM
Hi there
https://github.com/libretro/FBNeo/blob/master/src/burn/drv/pre90s/d_invaders.cpp
I don't believe it currently supports hiscores buy I may be wrong. Could you let me know if hiscores is supported?
I cannot work out how to add a tag for hiscores to be supported on this game
Many thanks.
Title: Re: how to know if a game has hi score saving support enabled
Post by: barbudreadmon on March 20, 2023, 06:36:11 AM
Hi there
https://github.com/libretro/FBNeo/blob/master/src/burn/drv/pre90s/d_invaders.cpp
I don't believe it currently supports hiscores buy I may be wrong. Could you let me know if hiscores is supported?
I cannot work out how to add a tag for hiscores to be supported on this game
Many thanks.

Indeed, the invaders driver doesn't seem to support hiscore.dat right now.

This is how you add hiscore.dat support to a driver : https://github.com/finalburnneo/FBNeo/commit/50579a833498b6a44e5ce2f9438cb6b34d340173