Skip to content

Commit

Permalink
prevent suspend mode because it can corrupt hdf files
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Feb 7, 2018
1 parent 391bf2c commit c3d780a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ void real_main (int argc, char **argv)
#ifdef __PSP2__
//Initialize ShellUtil to allow us to disable "PS" Button (corrupts hdf files)
sceShellUtilInitEvents(0);
// prevent suspend (corrupts hdf files)
sceKernelPowerTick(SCE_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND);
sceKernelPowerTick(SCE_KERNEL_POWER_TICK_DISABLE_OLED_OFF);
//Initialize touch panels
psp2InitTouch();
#endif
Expand Down

0 comments on commit c3d780a

Please sign in to comment.