diff --git a/Source/Core/Core/ConfigManager.h b/Source/Core/Core/ConfigManager.h index e386cb741f..fae9402bf7 100644 --- a/Source/Core/Core/ConfigManager.h +++ b/Source/Core/Core/ConfigManager.h @@ -154,7 +154,6 @@ struct SConfig bool m_slippiReplayMonthFolders = false; std::string m_strSlippiReplayDir; bool bBootDefaultISO = false; //move maybe - bool m_InterfaceSeekbar; // move maybe // Interface settings bool bConfirmStop = false; diff --git a/Source/Core/DolphinQt/Main.cpp b/Source/Core/DolphinQt/Main.cpp index 2b98889086..c29f0b8587 100644 --- a/Source/Core/DolphinQt/Main.cpp +++ b/Source/Core/DolphinQt/Main.cpp @@ -142,6 +142,11 @@ int main(int argc, char* argv[]) Settings::Instance().SetBatchModeEnabled(options.is_set("batch")); Settings::Instance().SetSlippiInputFile(static_cast(options.get("slippi_input"))); +#ifdef IS_PLAYBACK + if (options.is_set("hide-seekbar")) + Settings::Instance().SetSlippiSeekbarEnabled(false); +#endif + // Hook up alerts from core Common::RegisterMsgAlertHandler(QtMsgAlertHandler); diff --git a/Source/Core/DolphinQt/Settings.cpp b/Source/Core/DolphinQt/Settings.cpp index e70483f0b5..3b5b2f8432 100644 --- a/Source/Core/DolphinQt/Settings.cpp +++ b/Source/Core/DolphinQt/Settings.cpp @@ -568,11 +568,17 @@ std::string Settings::GetSlippiInputFile() const { return SConfig::GetInstance().m_strSlippiInput; } + void Settings::SetSlippiInputFile(std::string path) { SConfig::GetInstance().m_strSlippiInput = path; } +void Settings::SetSlippiSeekbarEnabled(bool enabled) +{ + SConfig::GetInstance().m_slippiEnableSeek = enabled; +} + bool Settings::IsSDCardInserted() const { return SConfig::GetInstance().m_WiiSDCard; diff --git a/Source/Core/DolphinQt/Settings.h b/Source/Core/DolphinQt/Settings.h index 774fbae51c..c273fc7df3 100644 --- a/Source/Core/DolphinQt/Settings.h +++ b/Source/Core/DolphinQt/Settings.h @@ -88,6 +88,7 @@ public: std::string GetSlippiInputFile() const; void SetSlippiInputFile(std::string path); + void SetSlippiSeekbarEnabled(bool enabled); bool IsSDCardInserted() const; void SetSDCardInserted(bool inserted); bool IsUSBKeyboardConnected() const; diff --git a/Source/Core/UICommon/CommandLineParse.cpp b/Source/Core/UICommon/CommandLineParse.cpp index 2faf261f4d..c5178d979a 100644 --- a/Source/Core/UICommon/CommandLineParse.cpp +++ b/Source/Core/UICommon/CommandLineParse.cpp @@ -123,6 +123,9 @@ std::unique_ptr CreateParser(ParserOptions options) .metavar("") .type("string") .help("Path to Slippi replay config file (default: Slippi/playback.txt)"); + parser->add_option("-hs", "--hide-seekbar") + .action("store_true") + .help("Disable and hide seekbar during playback"); return parser; }