From 2a3aa881fdf62713e3e8aa81e53ace20f6ea977a Mon Sep 17 00:00:00 2001 From: "j4ck.fr0st" Date: Sat, 3 Jul 2010 10:24:55 +0000 Subject: [PATCH] Rename the /e command line option to exec. Caused some confusion in Issue 2891 since it is not limited to ELF only. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5823 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/Main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 0996873498..72b03cf6a0 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -92,12 +92,12 @@ bool DolphinApp::OnInit() // Declarations and definitions bool UseDebugger = false; bool UseLogger = false; - bool LoadElf = false; + bool LoadFile = false; bool selectVideoPlugin = false; bool selectAudioPlugin = false; bool selectWiimotePlugin = false; - wxString ElfFile; + wxString FileToLoad; wxString videoPluginFilename; wxString audioPluginFilename; wxString wiimotePluginFilename; @@ -117,7 +117,7 @@ bool DolphinApp::OnInit() wxCMD_LINE_SWITCH, "l", "logger", "Opens The Logger" }, { - wxCMD_LINE_OPTION, "e", "elf", "Loads an elf file", + wxCMD_LINE_OPTION, "e", "exec", "Loads the specified file (DOL, ELF, WAD, GCM, ISO)", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, { @@ -155,7 +155,7 @@ bool DolphinApp::OnInit() wxCMD_LINE_SWITCH, _("l"), _("logger"), wxT("Opens The Logger") }, { - wxCMD_LINE_OPTION, _("e"), _("elf"), wxT("Loads an elf file"), + wxCMD_LINE_OPTION, _("e"), _("exec"), wxT("Loads the specified file (DOL, ELF, WAD, GCM, ISO)"), wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, { @@ -189,11 +189,11 @@ bool DolphinApp::OnInit() #if wxCHECK_VERSION(2, 9, 0) UseDebugger = parser.Found("debugger"); UseLogger = parser.Found("logger"); - LoadElf = parser.Found("elf", &ElfFile); + LoadFile = parser.Found("exec", &FileToLoad); #else UseDebugger = parser.Found(wxT("debugger")); UseLogger = parser.Found(wxT("logger")); - LoadElf = parser.Found(wxT("elf"), &ElfFile); + LoadFile = parser.Found(wxT("exec"), &FileToLoad); #endif #if wxCHECK_VERSION(2, 9, 0) @@ -389,10 +389,10 @@ bool DolphinApp::OnInit() // ------------ // Check the autoboot options. - // First check if we have an elf command line. - if (LoadElf && ElfFile != wxEmptyString) + // First check if we have an exec command line. + if (LoadFile && FileToLoad != wxEmptyString) { - main_frame->BootGame(std::string(ElfFile.mb_str())); + main_frame->BootGame(std::string(FileToLoad.mb_str())); } // If we have selected Automatic Start, start the default ISO, or if no default // ISO exists, start the last loaded ISO