Skip to content

Commit

Permalink
main: Check titleid for exit/suspend as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Electry committed Nov 2, 2019
1 parent 18d5fd3 commit b5d84c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ int ksceKernelInvokeProcEventHandler_patched(int pid, int ev, int a3, int a4, in

case 3: // exit
case 4: // suspend
// Check titleid
ksceKernelGetProcessTitleId(pid, titleid, sizeof(titleid));
if (!strncmp(titleid, "NPXS", 4))
goto PROCEVENT_UNLOCK_EXIT;

g_is_in_pspemu = false;
snprintf(titleid, sizeof(titleid), "main");
break;
Expand Down

0 comments on commit b5d84c4

Please sign in to comment.