From c52e249295e3779ba8bf1d609e88d97072837965 Mon Sep 17 00:00:00 2001 From: esuo1198 <54134.es@gmail.com> Date: Fri, 8 Mar 2024 13:30:09 +0900 Subject: [PATCH] Move amframework files to current directory --- src/patches/jp_apr_2023.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/patches/jp_apr_2023.cpp b/src/patches/jp_apr_2023.cpp index d9c1111..64751ec 100644 --- a/src/patches/jp_apr_2023.cpp +++ b/src/patches/jp_apr_2023.cpp @@ -79,6 +79,16 @@ Init () { auto amHandle = (u64)GetModuleHandle ("AMFrameWork.dll"); INSTALL_HOOK_DYNAMIC (AMFWTerminate, (void *)(amHandle + 0x42DE0)); + // Move various files to current directory + WRITE_MEMORY (amHandle + 0x15252, u8, 0xEB); // CreditLogPathA + WRITE_MEMORY (amHandle + 0x15419, u8, 0xEB); // CreditLogPathB + WRITE_MEMORY (amHandle + 0x416DA, u8, 0xEB); // ErrorLogPathA + WRITE_MEMORY (amHandle + 0x41859, u8, 0xEB); // ErrorLogPathB + WRITE_MEMORY (amHandle + 0x41C21, u8, 0xEB); // CommonLogPathA + WRITE_MEMORY (amHandle + 0x41DA5, u8, 0xEB); // CommonLogPathB + WRITE_MEMORY (amHandle + 0x420F1, u8, 0x90, 0x90, 0x90, 0x90, 0x90); // BackupDataPathA + WRITE_MEMORY (amHandle + 0x42167, u8, 0x90, 0x90, 0x90, 0x90, 0x90); // BackupDataPathB + // Redirect garmc requests auto garmcHandle = (u64)GetModuleHandle ("garmc.dll"); INSTALL_HOOK_DYNAMIC (curl_easy_setopt, (void *)(garmcHandle + 0x1FBBB0));