Merge pull request #10305 from AdmiralCurtiss/config-port-fifoplayer
Config: Port FifoPlayer setting to new config system.
This commit is contained in:
commit
8d237eb102
|
@ -248,4 +248,8 @@ const Info<bool> MAIN_GAMELIST_COLUMN_COMPRESSION{{System::Main, "GameList", "Co
|
||||||
false};
|
false};
|
||||||
const Info<bool> MAIN_GAMELIST_COLUMN_TAGS{{System::Main, "GameList", "ColumnTags"}, false};
|
const Info<bool> MAIN_GAMELIST_COLUMN_TAGS{{System::Main, "GameList", "ColumnTags"}, false};
|
||||||
|
|
||||||
|
// Main.FifoPlayer
|
||||||
|
|
||||||
|
const Info<bool> MAIN_FIFOPLAYER_LOOP_REPLAY{{System::Main, "FifoPlayer", "LoopReplay"}, true};
|
||||||
|
|
||||||
} // namespace Config
|
} // namespace Config
|
||||||
|
|
|
@ -210,4 +210,9 @@ extern const Info<bool> MAIN_GAMELIST_COLUMN_FILE_FORMAT;
|
||||||
extern const Info<bool> MAIN_GAMELIST_COLUMN_BLOCK_SIZE;
|
extern const Info<bool> MAIN_GAMELIST_COLUMN_BLOCK_SIZE;
|
||||||
extern const Info<bool> MAIN_GAMELIST_COLUMN_COMPRESSION;
|
extern const Info<bool> MAIN_GAMELIST_COLUMN_COMPRESSION;
|
||||||
extern const Info<bool> MAIN_GAMELIST_COLUMN_TAGS;
|
extern const Info<bool> MAIN_GAMELIST_COLUMN_TAGS;
|
||||||
|
|
||||||
|
// Main.FifoPlayer
|
||||||
|
|
||||||
|
extern const Info<bool> MAIN_FIFOPLAYER_LOOP_REPLAY;
|
||||||
|
|
||||||
} // namespace Config
|
} // namespace Config
|
||||||
|
|
|
@ -25,8 +25,9 @@ bool IsSettingSaveable(const Config::Location& config_location)
|
||||||
|
|
||||||
if (config_location.system == Config::System::Main)
|
if (config_location.system == Config::System::Main)
|
||||||
{
|
{
|
||||||
for (const std::string_view section : {"NetPlay", "General", "GBA", "Display", "Network",
|
for (const std::string_view section :
|
||||||
"Analytics", "AndroidOverlayButtons", "DSP", "GameList"})
|
{"NetPlay", "General", "GBA", "Display", "Network", "Analytics", "AndroidOverlayButtons",
|
||||||
|
"DSP", "GameList", "FifoPlayer"})
|
||||||
{
|
{
|
||||||
if (config_location.section == section)
|
if (config_location.section == section)
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -93,7 +93,6 @@ void SConfig::SaveSettings()
|
||||||
SaveCoreSettings(ini);
|
SaveCoreSettings(ini);
|
||||||
SaveMovieSettings(ini);
|
SaveMovieSettings(ini);
|
||||||
SaveInputSettings(ini);
|
SaveInputSettings(ini);
|
||||||
SaveFifoPlayerSettings(ini);
|
|
||||||
SaveBluetoothPassthroughSettings(ini);
|
SaveBluetoothPassthroughSettings(ini);
|
||||||
SaveUSBPassthroughSettings(ini);
|
SaveUSBPassthroughSettings(ini);
|
||||||
SaveAutoUpdateSettings(ini);
|
SaveAutoUpdateSettings(ini);
|
||||||
|
@ -221,13 +220,6 @@ void SConfig::SaveInputSettings(IniFile& ini)
|
||||||
input->Set("BackgroundInput", m_BackgroundInput);
|
input->Set("BackgroundInput", m_BackgroundInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SConfig::SaveFifoPlayerSettings(IniFile& ini)
|
|
||||||
{
|
|
||||||
IniFile::Section* fifoplayer = ini.GetOrCreateSection("FifoPlayer");
|
|
||||||
|
|
||||||
fifoplayer->Set("LoopReplay", bLoopFifoReplay);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SConfig::SaveBluetoothPassthroughSettings(IniFile& ini)
|
void SConfig::SaveBluetoothPassthroughSettings(IniFile& ini)
|
||||||
{
|
{
|
||||||
IniFile::Section* section = ini.GetOrCreateSection("BluetoothPassthrough");
|
IniFile::Section* section = ini.GetOrCreateSection("BluetoothPassthrough");
|
||||||
|
@ -289,7 +281,6 @@ void SConfig::LoadSettings()
|
||||||
LoadCoreSettings(ini);
|
LoadCoreSettings(ini);
|
||||||
LoadMovieSettings(ini);
|
LoadMovieSettings(ini);
|
||||||
LoadInputSettings(ini);
|
LoadInputSettings(ini);
|
||||||
LoadFifoPlayerSettings(ini);
|
|
||||||
LoadBluetoothPassthroughSettings(ini);
|
LoadBluetoothPassthroughSettings(ini);
|
||||||
LoadUSBPassthroughSettings(ini);
|
LoadUSBPassthroughSettings(ini);
|
||||||
LoadAutoUpdateSettings(ini);
|
LoadAutoUpdateSettings(ini);
|
||||||
|
@ -422,13 +413,6 @@ void SConfig::LoadInputSettings(IniFile& ini)
|
||||||
input->Get("BackgroundInput", &m_BackgroundInput, false);
|
input->Get("BackgroundInput", &m_BackgroundInput, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SConfig::LoadFifoPlayerSettings(IniFile& ini)
|
|
||||||
{
|
|
||||||
IniFile::Section* fifoplayer = ini.GetOrCreateSection("FifoPlayer");
|
|
||||||
|
|
||||||
fifoplayer->Get("LoopReplay", &bLoopFifoReplay, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SConfig::LoadBluetoothPassthroughSettings(IniFile& ini)
|
void SConfig::LoadBluetoothPassthroughSettings(IniFile& ini)
|
||||||
{
|
{
|
||||||
IniFile::Section* section = ini.GetOrCreateSection("BluetoothPassthrough");
|
IniFile::Section* section = ini.GetOrCreateSection("BluetoothPassthrough");
|
||||||
|
@ -620,8 +604,6 @@ void SConfig::LoadDefaults()
|
||||||
bOverrideRegionSettings = false;
|
bOverrideRegionSettings = false;
|
||||||
bWii = false;
|
bWii = false;
|
||||||
|
|
||||||
bLoopFifoReplay = true;
|
|
||||||
|
|
||||||
bJITOff = false; // debugger only settings
|
bJITOff = false; // debugger only settings
|
||||||
bJITLoadStoreOff = false;
|
bJITLoadStoreOff = false;
|
||||||
bJITLoadStoreFloatingOff = false;
|
bJITLoadStoreFloatingOff = false;
|
||||||
|
|
|
@ -151,9 +151,6 @@ struct SConfig
|
||||||
std::set<std::pair<u16, u16>> m_usb_passthrough_devices;
|
std::set<std::pair<u16, u16>> m_usb_passthrough_devices;
|
||||||
bool IsUSBDeviceWhitelisted(std::pair<u16, u16> vid_pid) const;
|
bool IsUSBDeviceWhitelisted(std::pair<u16, u16> vid_pid) const;
|
||||||
|
|
||||||
// Fifo Player related settings
|
|
||||||
bool bLoopFifoReplay = true;
|
|
||||||
|
|
||||||
// Custom RTC
|
// Custom RTC
|
||||||
bool bEnableCustomRTC;
|
bool bEnableCustomRTC;
|
||||||
u32 m_customRTCValue;
|
u32 m_customRTCValue;
|
||||||
|
@ -273,7 +270,6 @@ private:
|
||||||
void SaveCoreSettings(IniFile& ini);
|
void SaveCoreSettings(IniFile& ini);
|
||||||
void SaveInputSettings(IniFile& ini);
|
void SaveInputSettings(IniFile& ini);
|
||||||
void SaveMovieSettings(IniFile& ini);
|
void SaveMovieSettings(IniFile& ini);
|
||||||
void SaveFifoPlayerSettings(IniFile& ini);
|
|
||||||
void SaveBluetoothPassthroughSettings(IniFile& ini);
|
void SaveBluetoothPassthroughSettings(IniFile& ini);
|
||||||
void SaveUSBPassthroughSettings(IniFile& ini);
|
void SaveUSBPassthroughSettings(IniFile& ini);
|
||||||
void SaveAutoUpdateSettings(IniFile& ini);
|
void SaveAutoUpdateSettings(IniFile& ini);
|
||||||
|
@ -284,7 +280,6 @@ private:
|
||||||
void LoadCoreSettings(IniFile& ini);
|
void LoadCoreSettings(IniFile& ini);
|
||||||
void LoadInputSettings(IniFile& ini);
|
void LoadInputSettings(IniFile& ini);
|
||||||
void LoadMovieSettings(IniFile& ini);
|
void LoadMovieSettings(IniFile& ini);
|
||||||
void LoadFifoPlayerSettings(IniFile& ini);
|
|
||||||
void LoadBluetoothPassthroughSettings(IniFile& ini);
|
void LoadBluetoothPassthroughSettings(IniFile& ini);
|
||||||
void LoadUSBPassthroughSettings(IniFile& ini);
|
void LoadUSBPassthroughSettings(IniFile& ini);
|
||||||
void LoadAutoUpdateSettings(IniFile& ini);
|
void LoadAutoUpdateSettings(IniFile& ini);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include "Common/Assert.h"
|
#include "Common/Assert.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/MsgHandler.h"
|
#include "Common/MsgHandler.h"
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/Config/MainSettings.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
#include "Core/CoreTiming.h"
|
#include "Core/CoreTiming.h"
|
||||||
#include "Core/FifoPlayer/FifoDataFile.h"
|
#include "Core/FifoPlayer/FifoDataFile.h"
|
||||||
|
@ -163,7 +163,7 @@ void FifoPlaybackAnalyzer::OnCommand(const u8* data, u32 size)
|
||||||
|
|
||||||
bool IsPlayingBackFifologWithBrokenEFBCopies = false;
|
bool IsPlayingBackFifologWithBrokenEFBCopies = false;
|
||||||
|
|
||||||
FifoPlayer::FifoPlayer() : m_Loop{SConfig::GetInstance().bLoopFifoReplay}
|
FifoPlayer::FifoPlayer() : m_Loop{Config::Get(Config::MAIN_FIFOPLAYER_LOOP_REPLAY)}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue