Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
OrsellGaming committed Nov 10, 2024
1 parent e126851 commit b8adc98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ bool CWSS9000Plugin::Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn
Memory::Scanner::Scan(CLIENTDLL, "55 8B EC 81 EC 48 01 00 00 57"),
&CUGCFileRequestManager__Update_hook, (void**)&CUGCFileRequestManager__Update_orig
);
#else // Linux
MH_CreateHook(
Memory::Scanner::Scan(CLIENTDLL, "55 89 E5 57 56 53 81 EC 5C 01 00 00 8B 5D"),
&CUGCFileRequestManager__Update_hook, (void**)&CUGCFileRequestManager__Update_orig
);
#else // Linux. I believe the sig for linux is incorrect and I need to spend a bit more time to confirm its the right one.
//MH_CreateHook(
// Memory::Scanner::Scan(CLIENTDLL, "55 89 E5 57 56 53 81 EC 5C 01 00 00 8B 5D"),
// &CUGCFileRequestManager__Update_hook, (void**)&CUGCFileRequestManager__Update_orig
//);
#endif // _WIN32

MH_EnableHook(MH_ALL_HOOKS);
Expand Down

0 comments on commit b8adc98

Please sign in to comment.