1
0
mirror of synced 2024-11-14 23:07:36 +01:00

Fix VF5E Test menu

Fix VF5E Test menu
Add logging to backup funcs and fix some params
This commit is contained in:
Nico Giansanti 2021-07-07 23:26:25 +03:00
parent 695fa5f414
commit 65f74a3681
4 changed files with 23 additions and 9 deletions

View File

@ -323,7 +323,7 @@ char __fastcall ApmSystemSetting_getUiSetting(__int64 a1)
__int64 __fastcall Backup_getRecordStatus(__int64 a1) __int64 __fastcall Backup_getRecordStatus(__int64 a1)
{ {
#ifdef _DEBUG #ifdef _DEBUG
info(true, "Backup_getRecordStatus"); info(true, "Backup_getRecordStatus %llx", a1);
#endif #endif
return Backup_getRecordStatusReturnValue; return Backup_getRecordStatusReturnValue;
} }
@ -336,10 +336,10 @@ __int64 Backup_isSetupSucceeded()
return Backup_isSetupSucceededReturnValue; return Backup_isSetupSucceededReturnValue;
} }
__int64 __fastcall Backup_saveRecord(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6, int a7, char a8, int a9, __int64 a10, int a11, int a12, int a13, int a14, __int64 a15) __int64 __fastcall Backup_saveRecord(__int64 a1)
{ {
#ifdef _DEBUG #ifdef _DEBUG
info(true, "Backup_saveRecord"); info(true, "Backup_saveRecord %llx", a1);
#endif #endif
return Backup_saveRecordReturnValue; return Backup_saveRecordReturnValue;
} }
@ -347,16 +347,16 @@ __int64 __fastcall Backup_saveRecord(__int64 a1, __int64 a2, __int64 a3, __int64
__int64 __fastcall Backup_saveRecordByAddress(__int64 a1) __int64 __fastcall Backup_saveRecordByAddress(__int64 a1)
{ {
#ifdef _DEBUG #ifdef _DEBUG
info(true, "Backup_saveRecordByAddress"); info(true, "Backup_saveRecordByAddress %llx", a1);
#endif #endif
return Backup_saveRecordByAddressReturnValue; return Backup_saveRecordByAddressReturnValue;
} }
//__int64 __fastcall Backup_setupRecords(__int128* a1, unsigned int a2) //__int64 __fastcall Backup_setupRecords(__int128* a1, unsigned int a2)
__int64 __fastcall Backup_setupRecords(__int64 *a1, unsigned int a2) __int64 __fastcall Backup_setupRecords(__int64 a1, unsigned int a2)
{ {
#ifdef _DEBUG #ifdef _DEBUG
info(true, "Backup_setupRecords"); info(true, "Backup_setupRecords %llx, %llx", a1, a2);
#endif #endif
return Backup_setupRecordsReturnValue; return Backup_setupRecordsReturnValue;
} }
@ -1072,6 +1072,16 @@ static InitFunction initVF5Func([]()
}, GameID::VF5Esports); }, GameID::VF5Esports);
static InitFunction initVF5TestFunc([]()
{
HookAPM3();
strcpy(APM3GameId, "SDHF");
__int64 mainModuleBase = (__int64)GetModuleHandle(0);
Sequence_isTestReturnValue = 1;
}, GameID::VF5EsportsTest);
static InitFunction initGoonyaFunc([]() static InitFunction initGoonyaFunc([]()
{ {
HookAPM3(); HookAPM3();

View File

@ -384,7 +384,8 @@ static InitFunction initFunc([]()
|| GameDetect::currentGame == GameID::FNFSB || GameDetect::currentGame == GameID::FNFSB
|| GameDetect::currentGame == GameID::FNFSB2 || GameDetect::currentGame == GameID::FNFSB2
|| GameDetect::currentGame == GameID::JLeague || GameDetect::currentGame == GameID::JLeague
|| GameDetect::currentGame == GameID::VF5Esports) || GameDetect::currentGame == GameID::VF5Esports
|| GameDetect::currentGame == GameID::VF5EsportsTest)
return; return;
MH_Initialize(); MH_Initialize();

View File

@ -654,9 +654,11 @@ void GameDetect::DetectCurrentGame()
currentGame = GameID::Pengoe511; currentGame = GameID::Pengoe511;
break; break;
case 0x6fc27eed: // Original case 0x6fc27eed: // Original
case 0x3b3fc3ab: // Other exe
currentGame = GameID::VF5Esports; currentGame = GameID::VF5Esports;
break; break;
case 0x3b3fc3ab: // TEST MENU VF5E
currentGame = GameID::VF5EsportsTest;
break;
case 0x1ab0f981: case 0x1ab0f981:
currentGame = GameID::GoonyaFighter; currentGame = GameID::GoonyaFighter;
break; break;

View File

@ -104,5 +104,6 @@ enum class GameID
PuyoPuyoEsports, PuyoPuyoEsports,
SFV, SFV,
TappingSkillTest, TappingSkillTest,
Pengoe511 Pengoe511,
VF5EsportsTest
}; };