mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
FifoPlayer: Allow changing loop option at runtime
This option has always existed since it's used by FifoCI, but now it can be changed at runtime. Looping is something that should almost always be on, but it can be useful to turn it off when frame-dumping is enabled so that hundreds of copies of the same frame aren't created. Before, turning it off required restarting Dolphin.
This commit is contained in:
@ -163,7 +163,7 @@ void FifoPlaybackAnalyzer::OnCommand(const u8* data, u32 size)
|
||||
|
||||
bool IsPlayingBackFifologWithBrokenEFBCopies = false;
|
||||
|
||||
FifoPlayer::FifoPlayer() : m_Loop{Config::Get(Config::MAIN_FIFOPLAYER_LOOP_REPLAY)}
|
||||
FifoPlayer::FifoPlayer()
|
||||
{
|
||||
m_config_changed_callback_id = Config::AddConfigChangedCallback([this] { RefreshConfig(); });
|
||||
RefreshConfig();
|
||||
@ -303,6 +303,7 @@ std::unique_ptr<CPUCoreBase> FifoPlayer::GetCPUCore()
|
||||
|
||||
void FifoPlayer::RefreshConfig()
|
||||
{
|
||||
m_Loop = Config::Get(Config::MAIN_FIFOPLAYER_LOOP_REPLAY);
|
||||
m_EarlyMemoryUpdates = Config::Get(Config::MAIN_FIFOPLAYER_EARLY_MEMORY_UPDATES);
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ private:
|
||||
|
||||
void RefreshConfig();
|
||||
|
||||
bool m_Loop;
|
||||
bool m_Loop = true;
|
||||
// If enabled then all memory updates happen at once before the first frame
|
||||
bool m_EarlyMemoryUpdates = false;
|
||||
|
||||
|
Reference in New Issue
Block a user