1
0
mirror of synced 2025-02-21 20:59:31 +01:00

Fix D: redirects and nop OutputDebugStringA

This commit is contained in:
Nico Giansanti 2019-04-14 00:20:33 +03:00
parent 06f72cc729
commit 58c2b6608d
2 changed files with 32 additions and 0 deletions

View File

@ -33,9 +33,40 @@ static InitFunction initFunction_GC2([]()
init_RegHooks();
init_NesysEmu();
// Patch D: references
//D:
injector::WriteMemoryRaw(imageBase + 0x33D344, ".", 2, true);
// D:/garbage%d.txt
injector::WriteMemoryRaw(imageBase + 0x2B6B08, "./garbage%d.txt", 16, true);
// D:/country.dat
injector::WriteMemoryRaw(imageBase + 0x2B4B68, "./country.dat", 14, true);
injector::WriteMemoryRaw(imageBase + 0x2B4B54, "./country.dat", 14, true);
// D:/NesysQueue_Error_%04d_%02d_%02d_%02d_%02d_%02d.txt
injector::WriteMemoryRaw(imageBase + 0x2B205C, "./NesysQueue_Error_%04d_%02d_%02d_%02d_%02d_%02d.txt", 53, true);
// D:/count.csv
injector::WriteMemoryRaw(imageBase + 0x2B1024, "./count.csv", 12, true);
injector::WriteMemoryRaw(imageBase + 0x2B0F40, "./count.csv", 12, true);
// D:\\%s/
injector::WriteMemoryRaw(imageBase + 0x27AD80, "./%s/", 6, true);
// D:\\%s/*
injector::WriteMemoryRaw(imageBase + 0x27AD78, "./%s/*", 7, true);
// "D:\\%s/%s"
injector::WriteMemoryRaw(imageBase + 0x27AD6C, "./%s/%s", 8, true);
// "D:\\"
injector::WriteMemoryRaw(imageBase + 0x27AC44, "./", 3, true);
// D:\\%s%04d%02d%02d_%02d%02d%02d_
injector::WriteMemoryRaw(imageBase + 0x27AC00, "./%s%04d%02d%02d_%02d%02d%02d_", 31, true);
// D:\\%s/%s/*
injector::WriteMemoryRaw(imageBase + 0x27AD60, "./%s/%s/*", 10, true);
// D:/PlayData/
injector::WriteMemoryRaw(imageBase + 0x2A9CB8, "./PlayData/", 12, true);
// C:\\TypeXZEROTemp.dat check
safeJMP(imageBase + 0xF81B0, ReturnTrue);
// Ignore stupid OutputDebugStringA Scheluder crap
injector::MakeNOP(imageBase + 0x2008CC, 7);
// Unstuck the game from some dumb mouse scanner func
injector::MakeNOP(imageBase + 0xA3FF6, 2);
#if _M_IX86

View File

@ -148,6 +148,7 @@ int __cdecl iDmacDrvRegisterRead(int DeviceId, DWORD CommandCode, LPVOID OutBuff
break;
// Packages that are ok to return 0 for now to prevent spam...
case 0x4158:
case 0x4154:
case 0x415C:
case 0x41D0:
case 0x41D4: