Skip to content

Commit

Permalink
Fix hanging in some games after changes
Browse files Browse the repository at this point in the history
  • Loading branch information
masagrator committed May 19, 2020
1 parent 3fce0eb commit 47e7383
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ void CheckIfGameRunning(void*) {
check = true;
}
GameRunning = false;
checkdebug = false;
svcCloseHandle(debug);
}
else if (GameRunning == false) {
Expand All @@ -160,11 +159,11 @@ void CheckIfGameRunning(void*) {
if ((FPSoffset != NULL)) {
if (Atmosphere_present == true) dmntchtForceOpenCheatProcess();
else svcSleepThread(1'000'000'000);
GameRunning = true;
check = false;
fread(&FPSaddress, 0x5, 1, FPSoffset);
FPSavgaddress = FPSaddress - 0x8;
fclose(FPSoffset);
GameRunning = true;
check = false;
}
}
svcSleepThread(1'000'000'000);
Expand Down

0 comments on commit 47e7383

Please sign in to comment.