Permalink
Browse files

Merge pull request #6824 from aldelaro5/custom-rtc-no-bias

RTC: Write 0 to the counter bias if we are on custom RTC
  • Loading branch information...
leoetlino committed May 12, 2018
2 parents 36adf76 + 4b2906c commit e1169ef9ee2be1d3aee8d4d9972869f2c6967ca9
@@ -20,6 +20,7 @@
#include "Core/Config/SYSCONFSettings.h"
#include "Core/ConfigLoaders/IsSettingSaveable.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/IOS/IOS.h"
#include "Core/IOS/USB/Bluetooth/BTBase.h"
@@ -49,6 +50,9 @@ void SaveToSYSCONF(Config::LayerType layer)
setting.config_info);
}
if (SConfig::GetInstance().bEnableCustomRTC)
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.
@@ -177,4 +181,4 @@ std::unique_ptr<Config::ConfigLayerLoader> GenerateBaseConfigLoader()
{
return std::make_unique<BaseConfigLayerLoader>();
}
}
} // namespace ConfigLoaders
@@ -129,6 +129,8 @@ CEXIIPL::CEXIIPL() : m_uPosition(0), m_uAddress(0), m_uRWOffset(0), m_FontsLoade
// We Overwrite language selection here since it's possible on the GC to change the language as
// you please
g_SRAM.lang = SConfig::GetInstance().SelectedLanguage;
if (SConfig::GetInstance().bEnableCustomRTC)
g_SRAM.counter_bias = 0;
FixSRAMChecksums();
Common::WriteProtectMemory(m_pIPL, ROM_SIZE);

0 comments on commit e1169ef

Please sign in to comment.