commandline: initialize autodetect_method to 0

CommonSettings.autodetectBackupMethod is already initialized
to 0 so nothing will change.

This silence a silly warning in (at least)  gtk frontend.
This commit is contained in:
riccardom 2011-10-01 17:04:48 +00:00
parent 3fcb0a78d3
commit 9b241b9033
1 changed files with 2 additions and 3 deletions

View File

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