From b2c41cec0aae76b9680506f336ba3792540e1527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 1 Aug 2017 22:37:42 +0800 Subject: Config: Include SYSCONF in base layer Settings that come from the SYSCONF are now included in Dolphin's config system as part of the base layer. They are handled in a special way compared to other settings to make sure they are only loaded from and saved to the SYSCONF (to avoid different, possibly contradicting sources of truth). --- Source/Core/Common/SysConf.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Source/Core/Common/SysConf.cpp') diff --git a/Source/Core/Common/SysConf.cpp b/Source/Core/Common/SysConf.cpp index 2f86379462..34f406bc6b 100644 --- a/Source/Core/Common/SysConf.cpp +++ b/Source/Core/Common/SysConf.cpp @@ -14,7 +14,6 @@ #include "Common/FileUtil.h" #include "Common/Logging/Log.h" #include "Common/Swap.h" -#include "Core/Movie.h" constexpr size_t SYSCONF_SIZE = 0x4000; @@ -61,8 +60,6 @@ void SysConf::Load() WARN_LOG(CORE, "No valid SYSCONF detected. Creating a new one."); InsertDefaultEntries(); } - - ApplySettingsFromMovie(); } bool SysConf::LoadFromFile(const std::string& file_name) @@ -257,17 +254,6 @@ void SysConf::RemoveEntry(const std::string& key) m_entries.end()); } -// Apply Wii settings from normal SYSCONF on Movie recording/playback -void SysConf::ApplySettingsFromMovie() -{ - if (!Movie::IsMovieActive()) - return; - - SetData("IPL.LNG", Entry::Type::Byte, Movie::GetLanguage()); - SetData("IPL.E60", Entry::Type::Byte, Movie::IsPAL60()); - SetData("IPL.PGS", Entry::Type::Byte, Movie::IsProgressive()); -} - void SysConf::InsertDefaultEntries() { AddEntry({Entry::Type::BigArray, "BT.DINF", std::vector(0x460 + 1)}); -- cgit v1.2.3