- fix initialize autodetect_method (revert  r4101);
This commit is contained in:
mtabachenko 2012-02-20 19:47:58 +00:00
parent d628ede53b
commit 266eccb5d5
1 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@ CommandLine::CommandLine()
, arm9_gdb_port(0) , arm9_gdb_port(0)
, arm7_gdb_port(0) , arm7_gdb_port(0)
, start_paused(FALSE) , start_paused(FALSE)
, autodetect_method(0) , autodetect_method(-1)
{ {
#ifndef _MSC_VER #ifndef _MSC_VER
disable_sound = 0; disable_sound = 0;
@ -155,7 +155,8 @@ bool CommandLine::parse(int argc,char **argv)
CommonSettings.DebugConsole = true; CommonSettings.DebugConsole = true;
} }
CommonSettings.autodetectBackupMethod = autodetect_method; if (autodetect_method != -1)
CommonSettings.autodetectBackupMethod = autodetect_method;
//TODO NOT MAX PRIORITY! change ARM9BIOS etc to be a std::string //TODO NOT MAX PRIORITY! change ARM9BIOS etc to be a std::string
if(_bios_arm9) { CommonSettings.UseExtBIOS = true; strcpy(CommonSettings.ARM9BIOS,_bios_arm9); } if(_bios_arm9) { CommonSettings.UseExtBIOS = true; strcpy(CommonSettings.ARM9BIOS,_bios_arm9); }