Skip to content

Commit

Permalink
megadrive, stop debug from badly behaving game
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Sep 8, 2023
1 parent 8f5367a commit 53616b8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/burn/drv/megadrive/d_megadrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14416,7 +14416,7 @@ struct BurnDriver BurnDrvmd_goldnaxeplus = {
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_16BIT_ONLY | BDF_CLONE | BDF_HACK, 2, HARDWARE_SEGA_MEGADRIVE, GBF_SCRFIGHT, 0,
MegadriveGetZipName, md_goldnaxeplusRomInfo, md_goldnaxeplusRomName, NULL, NULL, NULL, NULL, MegadriveInputInfo, MegadriveDIPInfo,
MegadriveInit, MegadriveExit, MegadriveFrame, MegadriveDraw, MegadriveScan,
MegadriveInitNoDebug, MegadriveExit, MegadriveFrame, MegadriveDraw, MegadriveScan,
&bMegadriveRecalcPalette, 0x100, 320, 224, 4, 3
};

Expand Down
10 changes: 10 additions & 0 deletions src/burn/drv/megadrive/megadrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3218,6 +3218,16 @@ static INT32 __fastcall MegadriveTAScallback(void)
return 0; // disable
}


INT32 MegadriveInitNoDebug()
{
INT32 rc = MegadriveInit();

bNoDebug = 1;

return rc;
}

INT32 MegadriveInit()
{
BurnAllocMemIndex();
Expand Down
1 change: 1 addition & 0 deletions src/burn/drv/megadrive/megadrive.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extern UINT8 MegadriveDIP[2];
extern INT32 psolarmode;

INT32 MegadriveInit();
INT32 MegadriveInitNoDebug();
INT32 MegadriveExit();
INT32 MegadriveFrame();
INT32 MegadriveScan(INT32 nAction, INT32 *pnMin);
Expand Down

0 comments on commit 53616b8

Please sign in to comment.