Skip to content

Commit

Permalink
Fix timer jumping to zero
Browse files Browse the repository at this point in the history
when battles begin in kof99eur and kof99sr. I just tested KOF99, maybe other KOF titles need similar patches.
I have ported all timer patches from HBMAME. So when other KOF games need them, we can just patch them.

static INT32 Kof97TimePatchInit() // Done!
{
 	INT32 nRet = NeoInit();
	UINT8* ROM = (UINT8*)Neo68KROMActive;
	ROM[0X263BB] = 0x65;
	return nRet;
}

static INT32 Kof98TimePatchInit() // Done!
{
 	INT32 nRet = NeoInit();
	UINT8* ROM = (UINT8*)Neo68KROMActive;
	ROM[0x30633] = 0x65;
	return nRet;
}

static INT32 Kof99TimePatchInit() // Done!
{
 	INT32 nRet = NeoInit();
	UINT8* ROM = (UINT8*)Neo68KROMActive;
	ROM[0x2ABE9] = 0x65;
	return nRet;
}


static INT32 Kof2k2TimePatchInit() // Done!
{
 	INT32 nRet = NeoInit();
	UINT8* ROM = (UINT8*)Neo68KROMActive;
	ROM[0x12511] = 0x65;
	return nRet;
}
  • Loading branch information
SumavisionQ5 committed Feb 18, 2020
1 parent c62252a commit 637e258
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/burn/drv/neogeo/d_neogeo.cpp
Expand Up @@ -18076,14 +18076,22 @@ static struct BurnRomInfo kof99eurRomDesc[] = {

STDROMPICKEXT(kof99eur, kof99eur, neogeo)
STD_ROM_FN(kof99eur)

static INT32 Kof99TimePatchInit() // We need this patch to get timer working properly!
{
INT32 nRet = NeoInit();
UINT8* ROM = (UINT8*)Neo68KROMActive;
ROM[0x2ABE9] = 0x65;
return nRet;
}

struct BurnDriver BurnDrvkof99eur = {
"kof99eur", "kof99", "neogeo", NULL, "201?",
"The King of Fighters '99 Evolution Ultra Remix (Hack By Yashional)\0", NULL, "hack", "Neo Geo MVS",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE | BDF_HACK, 2, HARDWARE_PREFIX_CARTRIDGE | HARDWARE_SNK_NEOGEO, GBF_VSFIGHT, FBF_KOF,
NULL, kof99eurRomInfo, kof99eurRomName, NULL, NULL, NULL, NULL, neogeoInputInfo, neogeoDIPInfo,
NeoInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
Kof99TimePatchInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
0x1000, 304, 224, 4, 3
};

Expand Down Expand Up @@ -18121,7 +18129,7 @@ struct BurnDriver BurnDrvkof99sr = {
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE | BDF_HACK, 2, HARDWARE_PREFIX_CARTRIDGE | HARDWARE_SNK_NEOGEO, GBF_VSFIGHT, FBF_KOF,
NULL, kof99srRomInfo, kof99srRomName, NULL, NULL, NULL, NULL, neogeoInputInfo, neogeoDIPInfo,
NeoInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
Kof99TimePatchInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
0x1000, 304, 224, 4, 3
};

Expand Down

0 comments on commit 637e258

Please sign in to comment.