Skip to content

Commit

Permalink
Wait for XMB to fully load #10
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRouletteBoi committed Apr 16, 2022
1 parent 6046206 commit 4554455
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ int module_start(unsigned int args, void* argp)
{
sys_ppu_thread_create(&gVshMenuPpuThreadId, [](uint64_t arg) -> void
{
do
Sleep(1000);
while (!vsh::paf::View::Find("explore_plugin"));

g_Render = Render();
g_Helpers = Helpers();
g_Overlay = Overlay();
Expand All @@ -45,7 +49,7 @@ int module_stop(unsigned int args, void* argp)
RemoveHooks();

g_Overlay.OnShutdown();
g_Render.DestroyPlanesAndTexts();
g_Render.DestroyWidgets();

// Prevent unload too fast (give time to other threads to finish)
sys_ppu_thread_yield();
Expand Down

0 comments on commit 4554455

Please sign in to comment.