Force disable WC24 standby mode
When standby mode is enabled, this causes games to ES_Launch the system menu instead of directly asking IOS (the STM more precisely) to shut down, which prevents graceful shutdown from working (it'll appear to hang). Dolphin never supported WC24 standby mode anyway, so this shouldn't cause any issues. (This should be reverted if and when WC24 standby is implemented…)
This commit is contained in:
parent
9b72b5f144
commit
5d8d696185
|
@ -310,7 +310,7 @@ void SysConf::GenerateSysConf()
|
||||||
|
|
||||||
// IPL.IDL
|
// IPL.IDL
|
||||||
current_offset += create_item(items[23], Type_SmallArray, "IPL.IDL", 1, current_offset);
|
current_offset += create_item(items[23], Type_SmallArray, "IPL.IDL", 1, current_offset);
|
||||||
items[23].data[0] = 0x01;
|
items[23].data[0] = 0x00;
|
||||||
|
|
||||||
// IPL.EULA
|
// IPL.EULA
|
||||||
current_offset += create_item(items[24], Type_Bool, "IPL.EULA", 1, current_offset);
|
current_offset += create_item(items[24], Type_Bool, "IPL.EULA", 1, current_offset);
|
||||||
|
|
|
@ -392,6 +392,15 @@ bool BootCore(const std::string& _rFilename)
|
||||||
SConfig::GetInstance().m_SYSCONF->SetData("IPL.PGS", StartUp.bProgressive);
|
SConfig::GetInstance().m_SYSCONF->SetData("IPL.PGS", StartUp.bProgressive);
|
||||||
SConfig::GetInstance().m_SYSCONF->SetData("IPL.E60", StartUp.bPAL60);
|
SConfig::GetInstance().m_SYSCONF->SetData("IPL.E60", StartUp.bPAL60);
|
||||||
|
|
||||||
|
if (StartUp.bWii)
|
||||||
|
{
|
||||||
|
// Disable WiiConnect24's standby mode. If it is enabled, it prevents us from receiving
|
||||||
|
// shutdown commands in the State Transition Manager (STM).
|
||||||
|
// TODO: remove this if and once Dolphin supports WC24 standby mode.
|
||||||
|
SConfig::GetInstance().m_SYSCONF->SetData("IPL.IDL", 0x00);
|
||||||
|
NOTICE_LOG(BOOT, "Disabling WC24 'standby' (shutdown to idle) to avoid hanging on shutdown");
|
||||||
|
}
|
||||||
|
|
||||||
// Run the game
|
// Run the game
|
||||||
// Init the core
|
// Init the core
|
||||||
if (!Core::Init())
|
if (!Core::Init())
|
||||||
|
|
Loading…
Reference in New Issue