From c664dcabafdbe1487699a02fac03e1e0043cdfaa Mon Sep 17 00:00:00 2001 From: esuo1198 <54134.es@gmail.com> Date: Sat, 23 Mar 2024 21:49:44 +0900 Subject: [PATCH] Add missing patch --- src/patches/cn_jun_2023.cpp | 14 ++++++++++++++ src/patches/jp_nov_2020.cpp | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/patches/cn_jun_2023.cpp b/src/patches/cn_jun_2023.cpp index bd2dfbe..0bc4708 100644 --- a/src/patches/cn_jun_2023.cpp +++ b/src/patches/cn_jun_2023.cpp @@ -170,6 +170,10 @@ Init () { WRITE_MEMORY (ASLR (0x140C7B158), char, ".\\SettingChina1.bin"); WRITE_MEMORY (ASLR (0x140C7B2B8), char, ".\\SettingChina1.bin"); WRITE_MEMORY (ASLR (0x140C7B2A0), char, ".\\SettingChina2.bin"); + WRITE_MEMORY (ASLR (0x140C3CF58), char, ".\\TournamentData\\PlayData\\TournamentPlayData.dat"); + WRITE_MEMORY (ASLR (0x140C3CF90), char, ".\\TournamentData\\InfoData\\TournamentInfoData.dat"); + WRITE_MEMORY (ASLR (0x140C3CFC8), char, ".\\TournamentData\\PlayData\\TournamentPlayData.dat"); + WRITE_MEMORY (ASLR (0x140C3D000), char, ".\\TournamentData\\InfoData\\TournamentInfoData.dat"); // Remove datatable size limit { @@ -207,6 +211,16 @@ Init () { auto amHandle = (u64)GetModuleHandle ("AMFrameWork.dll"); INSTALL_HOOK_DYNAMIC (AMFWTerminate, (void *)(amHandle + 0x25A00)); + // Move various files to current directory + WRITE_MEMORY (amHandle + 0xC652, u8, 0xEB); // CreditLogPathA + WRITE_MEMORY (amHandle + 0xC819, u8, 0xEB); // CreditLogPathB + WRITE_MEMORY (amHandle + 0x243BA, u8, 0xEB); // ErrorLogPathA + WRITE_MEMORY (amHandle + 0x24539, u8, 0xEB); // ErrorLogPathB + WRITE_MEMORY (amHandle + 0x24901, u8, 0xEB); // CommonLogPathA + WRITE_MEMORY (amHandle + 0x24A85, u8, 0xEB); // CommonLogPathB + WRITE_MEMORY (amHandle + 0x24DD1, u8, 0x90, 0x90, 0x90, 0x90, 0x90); // BackupDataPathA + WRITE_MEMORY (amHandle + 0x24E47, u8, 0x90, 0x90, 0x90, 0x90, 0x90); // BackupDataPathB + patches::Qr::Init (); } } // namespace patches::CN_JUN_2023 diff --git a/src/patches/jp_nov_2020.cpp b/src/patches/jp_nov_2020.cpp index 0d118d3..082b880 100644 --- a/src/patches/jp_nov_2020.cpp +++ b/src/patches/jp_nov_2020.cpp @@ -83,10 +83,10 @@ Init () { WRITE_MEMORY (ASLR (0x14044B1A9), u8, 0x10); // Move various files to current dir + WRITE_MEMORY (ASLR (0x14001C941), u8, 0x02); WRITE_MEMORY (ASLR (0x140B1B4B0), char, "./"); WRITE_MEMORY (ASLR (0x140B5C528), char, ".\\Setting1.bin"); WRITE_MEMORY (ASLR (0x140B5C538), char, ".\\Setting2.bin"); - WRITE_MEMORY (ASLR (0x14001C941), u8, 0x02); // Remove datatable size limit {