mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 19:55:50 +00:00
add new command line argument for hiding seekbar
This commit is contained in:
parent
d91d146c0e
commit
8ae8a60cd1
5 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -142,6 +142,11 @@ int main(int argc, char* argv[])
|
|||
Settings::Instance().SetBatchModeEnabled(options.is_set("batch"));
|
||||
Settings::Instance().SetSlippiInputFile(static_cast<const char*>(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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -123,6 +123,9 @@ std::unique_ptr<optparse::OptionParser> CreateParser(ParserOptions options)
|
|||
.metavar("<file>")
|
||||
.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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue