Implemented CLI switch to disable confirm on stop
This commit is contained in:
parent
c08a83a5aa
commit
ad1a8a1b31
|
@ -188,6 +188,11 @@ void DolphinApp::OnInitCmdLine(wxCmdLineParser& parser)
|
||||||
"Exit Dolphin with emulator",
|
"Exit Dolphin with emulator",
|
||||||
wxCMD_LINE_VAL_NONE, wxCMD_LINE_PARAM_OPTIONAL
|
wxCMD_LINE_VAL_NONE, wxCMD_LINE_PARAM_OPTIONAL
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
wxCMD_LINE_SWITCH, "n", "noconfirm",
|
||||||
|
"Disable Confirm on Stop",
|
||||||
|
wxCMD_LINE_VAL_NONE, wxCMD_LINE_PARAM_OPTIONAL
|
||||||
|
},
|
||||||
{
|
{
|
||||||
wxCMD_LINE_OPTION, "v", "video_backend",
|
wxCMD_LINE_OPTION, "v", "video_backend",
|
||||||
"Specify a video backend",
|
"Specify a video backend",
|
||||||
|
@ -234,6 +239,7 @@ bool DolphinApp::OnCmdLineParsed(wxCmdLineParser& parser)
|
||||||
m_use_debugger = parser.Found("debugger");
|
m_use_debugger = parser.Found("debugger");
|
||||||
m_use_logger = parser.Found("logger");
|
m_use_logger = parser.Found("logger");
|
||||||
m_batch_mode = parser.Found("batch");
|
m_batch_mode = parser.Found("batch");
|
||||||
|
m_no_confirm_stop = parser.Found("noconfirm");
|
||||||
m_select_video_backend = parser.Found("video_backend", &m_video_backend_name);
|
m_select_video_backend = parser.Found("video_backend", &m_video_backend_name);
|
||||||
m_select_audio_emulation = parser.Found("audio_emulation", &m_audio_emulation_name);
|
m_select_audio_emulation = parser.Found("audio_emulation", &m_audio_emulation_name);
|
||||||
m_play_movie = parser.Found("movie", &m_movie_file);
|
m_play_movie = parser.Found("movie", &m_movie_file);
|
||||||
|
@ -273,6 +279,9 @@ void DolphinApp::AfterInit()
|
||||||
if (!m_batch_mode)
|
if (!m_batch_mode)
|
||||||
main_frame->UpdateGameList();
|
main_frame->UpdateGameList();
|
||||||
|
|
||||||
|
if (m_no_confirm_stop)
|
||||||
|
SConfig::GetInstance().bConfirmStop = false;
|
||||||
|
|
||||||
if (m_play_movie && !m_movie_file.empty())
|
if (m_play_movie && !m_movie_file.empty())
|
||||||
{
|
{
|
||||||
if (Movie::PlayInput(WxStrToStr(m_movie_file)))
|
if (Movie::PlayInput(WxStrToStr(m_movie_file)))
|
||||||
|
|
|
@ -36,6 +36,7 @@ private:
|
||||||
static bool DolphinEmulatorDotComTextFileExists();
|
static bool DolphinEmulatorDotComTextFileExists();
|
||||||
|
|
||||||
bool m_batch_mode = false;
|
bool m_batch_mode = false;
|
||||||
|
bool m_no_confirm_stop = false;
|
||||||
bool m_load_file = false;
|
bool m_load_file = false;
|
||||||
bool m_play_movie = false;
|
bool m_play_movie = false;
|
||||||
bool m_use_debugger = false;
|
bool m_use_debugger = false;
|
||||||
|
|
Loading…
Reference in New Issue