Skip to content

Commit

Permalink
Fix song loader to work for Epic launcher version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mettra committed Feb 19, 2022
1 parent 8f379d0 commit 1d67232
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions FuserModDoorstop/src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ std::vector<byte> HexToBytes(const std::string& hex) {
return bytes;
}

// #define DEBUG_MODE
//#define DEBUG_MODE 1

#if DEBUG_MODE
#define DBG_PRINT(...) printf(__VA_ARGS__)
Expand Down Expand Up @@ -386,8 +386,12 @@ void setup_hook(void **target, void *hook) {
void FUSER_HOOK() {
Base = (byte*)GetModuleHandleA("Fuser-Win64-Shipping.exe");
if (Base == 0) {
printf("ERROR! Base wasn't found!\n");
return;
Base = (byte*)GetModuleHandleA("FuserEOS-Win64-Shipping.exe");

if (Base == 0) {
printf("ERROR! Base wasn't found!\n");
return;
}
}

// Change to 0 to re-lookup all of these functions.
Expand Down

0 comments on commit 1d67232

Please sign in to comment.