Author Topic: how to know if a game has hi score saving support enabled  (Read 3752 times)

Offline Sputnik

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
how to know if a game has hi score saving support enabled
« 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?
« Last Edit: January 26, 2021, 10:17:50 AM by Sputnik »

Offline dink

  • Administrator
  • *****
  • Posts: 5010
  • Karma: +449/-1
  • pie? I nearly bought one!
Re: how to know if a game has hi score saving support enabled
« Reply #1 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
« Last Edit: January 26, 2021, 02:36:29 PM by dink »

Offline telipur

  • New Member
  • *
  • Posts: 1
  • Karma: +0/-0
Re: how to know if a game has hi score saving support enabled
« Reply #2 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.

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1090
  • Karma: +59/-1
  • Helper
Re: how to know if a game has hi score saving support enabled
« Reply #3 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