Merge pull request #12064 from noahpistilli/wc24-standby

Remove force disable WC24 Standby
This commit is contained in:
JMC47 2023-08-10 16:07:47 -04:00 committed by GitHub
commit 032c77b462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,17 +69,6 @@ void SaveToSYSCONF(Config::LayerType layer, std::function<bool(const Config::Loc
} }
sysconf.SetData<u32>("IPL.CB", SysConf::Entry::Type::Long, 0); sysconf.SetData<u32>("IPL.CB", SysConf::Entry::Type::Long, 0);
// 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.
SysConf::Entry* idle_entry = sysconf.GetOrAddEntry("IPL.IDL", SysConf::Entry::Type::SmallArray);
if (idle_entry->bytes.empty())
idle_entry->bytes = std::vector<u8>(2);
else
idle_entry->bytes[0] = 0;
NOTICE_LOG_FMT(CORE, "Disabling WC24 'standby' (shutdown to idle) to avoid hanging on shutdown");
IOS::HLE::RestoreBTInfoSection(&sysconf); IOS::HLE::RestoreBTInfoSection(&sysconf);
sysconf.Save(); sysconf.Save();
} }