Add support for Rolling Gunner 2.0 and 2.1
- Add support for Rolling Gunner 2.0 and 2.1 - Improve GetAppRootPath call
This commit is contained in:
parent
2d33a8ba45
commit
739b2a25d2
@ -388,12 +388,14 @@ DWORD_PTR CALLPLEB NetworkProperty_getAddressValue()
|
||||
return NetworkProperty_getAddressValueReturnValue;
|
||||
}
|
||||
|
||||
DWORD_PTR CALLPLEB System_getAppRootPath()
|
||||
static char* gameDir = ".\\";
|
||||
|
||||
char *CALLPLEB System_getAppRootPath()
|
||||
{
|
||||
#ifdef _LOGAPM3
|
||||
info(true, "System_getAppRootPath");
|
||||
#endif
|
||||
return System_getAppRootPathReturnValue;
|
||||
return gameDir;
|
||||
}
|
||||
|
||||
struct StandardSerialID
|
||||
@ -1020,4 +1022,32 @@ static InitFunction initFuncUmifresh02([]()
|
||||
injector::WriteMemory<BYTE>(mainModuleBase + 0x1806BF, 0xEB, true); // Skip some credit check idfk
|
||||
|
||||
}, GameID::Umifresh);
|
||||
|
||||
static int __stdcall ValidateDongle(int somearg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static InitFunction initFuncRollingGunner20([]()
|
||||
{
|
||||
HookAPM3();
|
||||
wcscpy(APM3GameId, L"SDGW");
|
||||
|
||||
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
|
||||
|
||||
// I am crazy and not care about serial check
|
||||
injector::MakeJMP(mainModuleBase + 0xB6290, ValidateDongle);
|
||||
|
||||
}, GameID::RollingGunner20);
|
||||
static InitFunction initFuncRollingGunner21([]()
|
||||
{
|
||||
HookAPM3();
|
||||
wcscpy(APM3GameId, L"SDGW");
|
||||
|
||||
DWORD_PTR mainModuleBase = (DWORD_PTR)GetModuleHandle(0);
|
||||
|
||||
// I am crazy and not care about serial check
|
||||
injector::MakeJMP(mainModuleBase + 0xB6140, ValidateDongle);
|
||||
|
||||
}, GameID::RollingGunner21);
|
||||
#endif
|
@ -616,6 +616,12 @@ void GameDetect::DetectCurrentGame()
|
||||
case 0x79fa2f58: // Umihara KawaseFresh!ForAC
|
||||
SetGameId(GameID::Umifresh, "Umihara KawaseFresh! For AC");
|
||||
break;
|
||||
case 0x1ff0b15b: // Rolling Gunner 2.0
|
||||
SetGameId(GameID::RollingGunner20, "Rolling Gunner 2.0");
|
||||
break;
|
||||
case 0x3c367b7b: // Rolling Gunner 2.1
|
||||
SetGameId(GameID::RollingGunner21, "Rolling Gunner 2.1");
|
||||
break;
|
||||
#endif
|
||||
#ifdef _AMD64_
|
||||
case 0xf322d053:
|
||||
|
@ -114,5 +114,7 @@ enum class GameID
|
||||
Doa6Test,
|
||||
WMMT5DXPlus,
|
||||
GGS,
|
||||
Umifresh
|
||||
Umifresh,
|
||||
RollingGunner20,
|
||||
RollingGunner21
|
||||
};
|
Loading…
Reference in New Issue
Block a user