From 6591fc85a67efefdf26ae2c487e7767ff3d0f59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Tue, 3 Dec 2024 18:06:49 +0800 Subject: [PATCH] . --- cpp/LunaHook/LunaHook/engines/ppsspp/specialgames.hpp | 1 - cpp/LunaHook/LunaHook/hookfinder.cc | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cpp/LunaHook/LunaHook/engines/ppsspp/specialgames.hpp b/cpp/LunaHook/LunaHook/engines/ppsspp/specialgames.hpp index a39d9ac5..2bb1edef 100644 --- a/cpp/LunaHook/LunaHook/engines/ppsspp/specialgames.hpp +++ b/cpp/LunaHook/LunaHook/engines/ppsspp/specialgames.hpp @@ -32,7 +32,6 @@ namespace PPSSPP #ifndef _WIN64 BYTE sig[] = {0xb9, XX4}; *(uintptr_t *)(sig + 1) = addr; - bool succ = ; for (auto addr : Util::SearchMemory(sig, sizeof(sig), PAGE_EXECUTE, processStartAddress, processStopAddress)) { BYTE sig1[] = { diff --git a/cpp/LunaHook/LunaHook/hookfinder.cc b/cpp/LunaHook/LunaHook/hookfinder.cc index c5d4f38a..7d598a67 100644 --- a/cpp/LunaHook/LunaHook/hookfinder.cc +++ b/cpp/LunaHook/LunaHook/hookfinder.cc @@ -472,13 +472,13 @@ void SearchForHooks(SearchParam spUser) } ConsoleOutput("%p %p",minemaddr,maxemaddr); ConsoleOutput("%p %p",sp.minAddress,sp.maxAddress); - if(0){ + #if 0 auto f=fopen("1.txt","a"); for(auto addr:jitaddr2emuaddr){ fprintf(f,"%llx => %llx\n", addr.second.second ,addr.first); } fclose(f); - } + #endif for(auto addr:jitaddr2emuaddr){ //ConsoleOutput("%llx => %p", addr.second.second ,addr.first); if(addr.second.second>sp.maxAddress||addr.second.second