Skip to content

Commit 1d67232

Browse files
committed
Fix song loader to work for Epic launcher version
1 parent 8f379d0 commit 1d67232

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

FuserModDoorstop/src/dllmain.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ std::vector<byte> HexToBytes(const std::string& hex) {
333333
return bytes;
334334
}
335335

336-
// #define DEBUG_MODE
336+
//#define DEBUG_MODE 1
337337

338338
#if DEBUG_MODE
339339
#define DBG_PRINT(...) printf(__VA_ARGS__)
@@ -386,8 +386,12 @@ void setup_hook(void **target, void *hook) {
386386
void FUSER_HOOK() {
387387
Base = (byte*)GetModuleHandleA("Fuser-Win64-Shipping.exe");
388388
if (Base == 0) {
389-
printf("ERROR! Base wasn't found!\n");
390-
return;
389+
Base = (byte*)GetModuleHandleA("FuserEOS-Win64-Shipping.exe");
390+
391+
if (Base == 0) {
392+
printf("ERROR! Base wasn't found!\n");
393+
return;
394+
}
391395
}
392396

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

0 commit comments

Comments
 (0)