Stop the DVD drive after installing a game
This commit is contained in:
parent
201813f6f9
commit
1d582f97c2
1 changed files with 11 additions and 4 deletions
|
@ -954,9 +954,9 @@ int GameBrowseMenu::MainLoop()
|
||||||
if (choice == 1)
|
if (choice == 1)
|
||||||
{
|
{
|
||||||
this->SetState(STATE_DISABLED);
|
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."));
|
ShowError(tr("Failed to initialize the USB storage device."));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -967,11 +967,17 @@ int GameBrowseMenu::MainLoop()
|
||||||
ThreadedTask::Instance()->AddCallback(&HDDSizeCallback);
|
ThreadedTask::Instance()->AddCallback(&HDDSizeCallback);
|
||||||
ThreadedTask::Instance()->Execute();
|
ThreadedTask::Instance()->Execute();
|
||||||
}
|
}
|
||||||
return MenuInstall();
|
int res = MenuInstall();
|
||||||
|
WDVD_StopMotor();
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return MenuInstall();
|
{
|
||||||
|
int res = MenuInstall();
|
||||||
|
WDVD_StopMotor();
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
this->SetState(STATE_DEFAULT);
|
this->SetState(STATE_DEFAULT);
|
||||||
}
|
}
|
||||||
|
@ -1623,6 +1629,7 @@ int GameBrowseMenu::OpenClickedGame(struct discHdr *header)
|
||||||
|
|
||||||
wiilight(0);
|
wiilight(0);
|
||||||
rockout(0);
|
rockout(0);
|
||||||
|
WDVD_StopMotor();
|
||||||
|
|
||||||
SetState(STATE_DEFAULT);
|
SetState(STATE_DEFAULT);
|
||||||
SetAllowDim(true);
|
SetAllowDim(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue