SkullGirls added
Stuck at waiting for NESYS, added new RegSetValueExW support for EventModeEnable.
This commit is contained in:
parent
67b0fe2940
commit
d242004326
@ -6,6 +6,7 @@
|
||||
DWORD GameResult = 0;
|
||||
DWORD IOErrorCoin = 0;
|
||||
DWORD IOErrorCredit = 0;
|
||||
DWORD EventModeEnable = 0;
|
||||
|
||||
DWORD FillDwordInformation(const char *setting, const char *subkey, DWORD defaultValue)
|
||||
{
|
||||
@ -99,6 +100,11 @@ LSTATUS __stdcall RegSetValueExWWrap(
|
||||
PromptError(IOErrorCredit, 2);
|
||||
}
|
||||
}
|
||||
else if (wcscmp(lpValueName, L"EventModeEnable") == 0)
|
||||
{
|
||||
// USED IN SKULLGIRLS
|
||||
EventModeEnable = *(DWORD*)lpData;
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBoxA(0, "Unknown RegSetValueExW for NESiCA, Please contact devs!", "Error unhandled registry change", 0);
|
||||
@ -201,7 +207,7 @@ LSTATUS __stdcall RegQueryValueExWWrap(
|
||||
}
|
||||
else if (wcscmp(lpValueName, L"EventModeEnable") == 0) // REG_DWORD
|
||||
{
|
||||
*lpData = FillDwordInformation("NESiCA", "EventModeEnable", 0); // 0 = DISABLE / 1 = ENABLE
|
||||
*lpData = FillDwordInformation("NESiCA", "EventModeEnable", EventModeEnable); // 0 = DISABLE / 1 = ENABLE
|
||||
*lpcbData = 4;
|
||||
}
|
||||
else if (wcscmp(lpValueName, L"UserSelectEnable") == 0) // REG_DWORD
|
||||
|
@ -62,6 +62,11 @@ void GameDetect::DetectCurrentGame()
|
||||
NesicaKey = NesicaKey::None;
|
||||
isNesica = true;
|
||||
break;
|
||||
case 0xae41d855:
|
||||
currentGame = GameID::Nesica;
|
||||
NesicaKey = NesicaKey::None;
|
||||
isNesica = true;
|
||||
break;
|
||||
case 0x6DA10E60:
|
||||
currentGame = GameID::FordRacing;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user