Skip to content

Commit

Permalink
help prevent race condition (fixes Rename and Cancel on Install Theme)
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Nov 20, 2023
1 parent 8d2efec commit 0f1fad9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extras/menus/arkMenu/src/system_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static int drawThread(SceSize _args, void *_argp){
SystemMgr::drawScreen();
common::flipScreen();
sceKernelSignalSema(draw_sema, 1);
sceKernelDelayThread(0);
sceKernelDelayThread(1000);
}
sceKernelExitDeleteThread(0);
return 0;
Expand Down Expand Up @@ -420,7 +420,7 @@ void SystemMgr::pauseDraw(){

void SystemMgr::resumeDraw(){
sceKernelSignalSema(draw_sema, 1);
sceKernelDelayThread(0);
sceKernelDelayThread(1000);
}

void SystemMgr::enterFullScreen(){
Expand All @@ -437,4 +437,4 @@ SystemEntry* SystemMgr::getSystemEntry(unsigned index){

void SystemMgr::setSystemEntry(SystemEntry* entry, unsigned index){
if (index < MAX_ENTRIES) entries[index] = entry;
}
}

0 comments on commit 0f1fad9

Please sign in to comment.