Skip to content

Commit

Permalink
remove hacky MessageBox, replace it with a sleep command
Browse files Browse the repository at this point in the history
Instead of making a hacky new message box, we replaced it with waiting for 5 (milisecs?) after init WPAD for avoid input issues when in autooot.

Original code by FIX94.
  • Loading branch information
saulfabregwiivc committed Nov 1, 2023
1 parent 6886014 commit f7ae144
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Gamecube/menu/FileBrowserFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,8 @@ void fileBrowserFrame_LoadFile(int i)

if(!ret){ // If the read succeeded.
if(Autoboot){
// Wiimpathy:
// FIXME: The MessageBox is a hacky way to fix input not responding.
// No time to improve this...
menu::MessageBox::getInstance().setMessage("Autobooting game...");
// FIX94: after init wpad, wait a bit
sleep(5);
Func_SetPlayGame();
Func_PlayGame();
pMenuContext->setActiveFrame(MenuContext::FRAME_MAIN);
Expand Down

0 comments on commit f7ae144

Please sign in to comment.