From ddf4ceaf973de3d121d819486c2a644555f74e42 Mon Sep 17 00:00:00 2001 From: barbudreadmon Date: Mon, 22 Jun 2020 08:34:17 +0200 Subject: [PATCH] ssriders: add hiscores --- src/burn/drv/konami/d_tmnt.cpp | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/burn/drv/konami/d_tmnt.cpp b/src/burn/drv/konami/d_tmnt.cpp index 5c0a6a8ce..2d2878832 100644 --- a/src/burn/drv/konami/d_tmnt.cpp +++ b/src/burn/drv/konami/d_tmnt.cpp @@ -2524,7 +2524,7 @@ static INT32 DrvDoReset() PlayTitleSample = 0; TitleSamplePos = 0; PriorityFlag = 0; - + return 0; } @@ -2659,6 +2659,8 @@ static INT32 SsridersDoReset() dim_c = 0; dim_v = 0; + HiscoreReset(); + return 0; } @@ -6734,7 +6736,7 @@ struct BurnDriver BurnDrvSsriders = { "ssriders", NULL, NULL, NULL, "1991", "Sunset Riders (4 Players ver. EAC)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_HISCORE_SUPPORTED, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersRomInfo, SsridersRomName, NULL, NULL, NULL, NULL, Ssriders4pInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6744,7 +6746,7 @@ struct BurnDriver BurnDrvSsridersebd = { "ssridersebd", "ssriders", NULL, NULL, "1991", "Sunset Riders (2 Players ver. EBD)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersebdRomInfo, SsridersebdRomName, NULL, NULL, NULL, NULL, SsridersInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6754,7 +6756,7 @@ struct BurnDriver BurnDrvSsridersebc = { "ssridersebc", "ssriders", NULL, NULL, "1991", "Sunset Riders (2 Players ver. EBC)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersebcRomInfo, SsridersebcRomName, NULL, NULL, NULL, NULL, SsridersInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6764,7 +6766,7 @@ struct BurnDriver BurnDrvSsridersuda = { "ssridersuda", "ssriders", NULL, NULL, "1991", "Sunset Riders (4 Players ver. UDA)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersudaRomInfo, SsridersudaRomName, NULL, NULL, NULL, NULL, Ssriders4psInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6774,7 +6776,7 @@ struct BurnDriver BurnDrvSsriderseaa = { "ssriderseaa", "ssriders", NULL, NULL, "1991", "Sunset Riders (4 Players ver. EAA)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsriderseaaRomInfo, SsriderseaaRomName, NULL, NULL, NULL, NULL, Ssriders4psInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6784,7 +6786,7 @@ struct BurnDriver BurnDrvSsridersuab = { "ssridersuab", "ssriders", NULL, NULL, "1991", "Sunset Riders (4 Players ver. UAB)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersuabRomInfo, SsridersuabRomName, NULL, NULL, NULL, NULL, Ssriders4pInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6794,7 +6796,7 @@ struct BurnDriver BurnDrvSsridersuac = { "ssridersuac", "ssriders", NULL, NULL, "1991", "Sunset Riders (4 Players ver. UAC)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersuacRomInfo, SsridersuacRomName, NULL, NULL, NULL, NULL, Ssriders4pInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6804,7 +6806,7 @@ struct BurnDriver BurnDrvSsridersubc = { "ssridersubc", "ssriders", NULL, NULL, "1991", "Sunset Riders (2 Players ver. UBC)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersubcRomInfo, SsridersubcRomName, NULL, NULL, NULL, NULL, SsridersInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6814,7 +6816,7 @@ struct BurnDriver BurnDrvSsridersabd = { "ssridersabd", "ssriders", NULL, NULL, "1991", "Sunset Riders (2 Players ver. ABD)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersabdRomInfo, SsridersabdRomName, NULL, NULL, NULL, NULL, SsridersInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6824,7 +6826,7 @@ struct BurnDriver BurnDrvSsridersadd = { "ssridersadd", "ssriders", NULL, NULL, "1991", "Sunset Riders (4 Players ver. ADD)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 4, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersaddRomInfo, SsridersaddRomName, NULL, NULL, NULL, NULL, Ssriders4psInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6834,7 +6836,7 @@ struct BurnDriver BurnDrvSsridersjac = { "ssridersjac", "ssriders", NULL, NULL, "1991", "Sunset Riders (4 Players ver. JAC)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersjacRomInfo, SsridersjacRomName, NULL, NULL, NULL, NULL, SsridersInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6844,7 +6846,7 @@ struct BurnDriver BurnDrvSsridersjad = { "ssridersjad", "ssriders", NULL, NULL, "1991", "Sunset Riders (4 Players ver. JAD)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersjadRomInfo, SsridersjadRomName, NULL, NULL, NULL, NULL, SsridersInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6854,7 +6856,7 @@ struct BurnDriver BurnDrvSsridersjbd = { "ssridersjbd", "ssriders", NULL, NULL, "1991", "Sunset Riders (2 Players ver. JBD)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, SsridersjbdRomInfo, SsridersjbdRomName, NULL, NULL, NULL, NULL, SsridersInputInfo, NULL, SsridersInit, BlswhstlExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3 @@ -6869,7 +6871,7 @@ struct BurnDriverD BurnDrvSsridersb = { "ssridersb", "ssriders", NULL, NULL, "1991", "Sunset Riders (bootleg 4 Players ver. ADD)\0", NULL, "Konami", "GX064", NULL, NULL, NULL, NULL, - BDF_CLONE | BDF_BOOTLEG, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, + BDF_CLONE | BDF_BOOTLEG | BDF_HISCORE_SUPPORTED, 2, HARDWARE_KONAMI_68K_Z80, GBF_RUNGUN, 0, NULL, ssridersbRomInfo, ssridersbRomName, NULL, NULL, NULL, NULL, Ssriders4psInputInfo, NULL, SsridersbInit, CommonExit, SsridersFrame, BlswhstlDraw, SsridersScan, NULL, 0x810, 288, 224, 4, 3