mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
Stop the DVD drive after installing a game
This commit is contained in:
parent
201813f6f9
commit
1d582f97c2
@ -954,9 +954,9 @@ int GameBrowseMenu::MainLoop()
|
||||
if (choice == 1)
|
||||
{
|
||||
this->SetState(STATE_DISABLED);
|
||||
if(!(Settings.LoaderMode & MODE_WIIGAMES) && (gameList.GameCount() == 0))
|
||||
if (!(Settings.LoaderMode & MODE_WIIGAMES) && (gameList.GameCount() == 0))
|
||||
{
|
||||
if(WBFS_ReInit(WBFS_DEVICE_USB) < 0)
|
||||
if (WBFS_ReInit(WBFS_DEVICE_USB) < 0)
|
||||
ShowError(tr("Failed to initialize the USB storage device."));
|
||||
else
|
||||
{
|
||||
@ -967,11 +967,17 @@ int GameBrowseMenu::MainLoop()
|
||||
ThreadedTask::Instance()->AddCallback(&HDDSizeCallback);
|
||||
ThreadedTask::Instance()->Execute();
|
||||
}
|
||||
return MenuInstall();
|
||||
int res = MenuInstall();
|
||||
WDVD_StopMotor();
|
||||
return res;
|
||||
}
|
||||
}
|
||||
else
|
||||
return MenuInstall();
|
||||
{
|
||||
int res = MenuInstall();
|
||||
WDVD_StopMotor();
|
||||
return res;
|
||||
}
|
||||
|
||||
this->SetState(STATE_DEFAULT);
|
||||
}
|
||||
@ -1623,6 +1629,7 @@ int GameBrowseMenu::OpenClickedGame(struct discHdr *header)
|
||||
|
||||
wiilight(0);
|
||||
rockout(0);
|
||||
WDVD_StopMotor();
|
||||
|
||||
SetState(STATE_DEFAULT);
|
||||
SetAllowDim(true);
|
||||
|
Loading…
Reference in New Issue
Block a user