mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
.
This commit is contained in:
parent
30258ef809
commit
6591fc85a6
@ -32,7 +32,6 @@ namespace PPSSPP
|
|||||||
#ifndef _WIN64
|
#ifndef _WIN64
|
||||||
BYTE sig[] = {0xb9, XX4};
|
BYTE sig[] = {0xb9, XX4};
|
||||||
*(uintptr_t *)(sig + 1) = addr;
|
*(uintptr_t *)(sig + 1) = addr;
|
||||||
bool succ = ;
|
|
||||||
for (auto addr : Util::SearchMemory(sig, sizeof(sig), PAGE_EXECUTE, processStartAddress, processStopAddress))
|
for (auto addr : Util::SearchMemory(sig, sizeof(sig), PAGE_EXECUTE, processStartAddress, processStopAddress))
|
||||||
{
|
{
|
||||||
BYTE sig1[] = {
|
BYTE sig1[] = {
|
||||||
|
@ -472,13 +472,13 @@ void SearchForHooks(SearchParam spUser)
|
|||||||
}
|
}
|
||||||
ConsoleOutput("%p %p",minemaddr,maxemaddr);
|
ConsoleOutput("%p %p",minemaddr,maxemaddr);
|
||||||
ConsoleOutput("%p %p",sp.minAddress,sp.maxAddress);
|
ConsoleOutput("%p %p",sp.minAddress,sp.maxAddress);
|
||||||
if(0){
|
#if 0
|
||||||
auto f=fopen("1.txt","a");
|
auto f=fopen("1.txt","a");
|
||||||
for(auto addr:jitaddr2emuaddr){
|
for(auto addr:jitaddr2emuaddr){
|
||||||
fprintf(f,"%llx => %llx\n", addr.second.second ,addr.first);
|
fprintf(f,"%llx => %llx\n", addr.second.second ,addr.first);
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
#endif
|
||||||
for(auto addr:jitaddr2emuaddr){
|
for(auto addr:jitaddr2emuaddr){
|
||||||
//ConsoleOutput("%llx => %p", addr.second.second ,addr.first);
|
//ConsoleOutput("%llx => %p", addr.second.second ,addr.first);
|
||||||
if(addr.second.second>sp.maxAddress||addr.second.second<sp.minAddress)continue;
|
if(addr.second.second>sp.maxAddress||addr.second.second<sp.minAddress)continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user