diff --git a/installer/wad.vwii/0001000154484246.tmd b/installer/wad.vwii/0001000154484246.tmd index 2bb561d..c8f0468 100644 Binary files a/installer/wad.vwii/0001000154484246.tmd and b/installer/wad.vwii/0001000154484246.tmd differ diff --git a/main/source/Menus/menu_main.cpp b/main/source/Menus/menu_main.cpp index 9f8b85f..f95307b 100644 --- a/main/source/Menus/menu_main.cpp +++ b/main/source/Menus/menu_main.cpp @@ -676,11 +676,16 @@ int MenuMain() if(!first) { +#ifndef VWII if (Options.sdgecko) { xprintf("The HomebrewFilter rev%i\n= == == == == == == == =\nSD Card Gecko initialized.\n\n", SvnRev()); } - else if(Options.wifigecko) + else if +#else + if +#endif + (Options.wifigecko) { WifiGecko_Connect(); xprintf("The HomebrewFilter rev%i\n= == == == == == == == =\nWifi Gecko connected.\n\n", SvnRev()); diff --git a/main/source/Menus/menu_settings_file.cpp b/main/source/Menus/menu_settings_file.cpp index 6a109ae..3fb80d7 100644 --- a/main/source/Menus/menu_settings_file.cpp +++ b/main/source/Menus/menu_settings_file.cpp @@ -27,8 +27,8 @@ bool temp_show_all; int temp_device_icon; int temp_wiiload_ios; int temp_wiiload_ahb; -bool temp_sdgecko; #ifndef VWII +bool temp_sdgecko; bool temp_bootmii_boot2; #endif bool temp_navigation; @@ -57,8 +57,8 @@ int MenuSettingsFile() else childlock = 1; bool navigation = Options.navigation; - bool sdgecko = Options.sdgecko; #ifndef VWII + bool sdgecko = Options.sdgecko; bool bootmii_boot2 = Options.bootmii_boot2; #endif string device_dat; @@ -80,8 +80,8 @@ int MenuSettingsFile() sprintf(options.name[i++], tr("Device icon")); sprintf(options.name[i++], tr("Wiiload IOS")); sprintf(options.name[i++], tr("Wiiload IOS Reload")); - sprintf(options.name[i++], tr("SD Gecko")); #ifndef VWII + sprintf(options.name[i++], tr("SD Gecko")); sprintf(options.name[i++], tr("BootMii in Boot2")); #endif sprintf(options.name[i++], tr("Childlock")); @@ -214,11 +214,11 @@ int MenuSettingsFile() change = 3; wiiload_ahb = change; break; - +#ifndef VWII case SDGECKO: sdgecko = 1; break; -#ifndef VWII + case BOOTMII_BOOT2: bootmii_boot2 = 1; break; @@ -300,11 +300,11 @@ int MenuSettingsFile() change = 0; wiiload_ahb = change; break; - +#ifndef VWII case SDGECKO: sdgecko = 0; break; -#ifndef VWII + case BOOTMII_BOOT2: bootmii_boot2 = 0; break; @@ -338,8 +338,8 @@ int MenuSettingsFile() temp_wiiload_ios = atoi(options.value[WIILOAD_IOS]); temp_wiiload_ahb = wiiload_ahb; temp_device_dat = device_dat; - temp_sdgecko = sdgecko; #ifndef VWII + temp_sdgecko = sdgecko; temp_bootmii_boot2 = bootmii_boot2; #endif temp_navigation = navigation; @@ -400,8 +400,8 @@ int MenuSettingsFile() childlock = 0; else childlock = 1; - sdgecko = temp_sdgecko; #ifndef VWII + sdgecko = temp_sdgecko; bootmii_boot2 = temp_bootmii_boot2; #endif navigation = temp_navigation; @@ -459,12 +459,12 @@ int MenuSettingsFile() sprintf (options.value[WIILOAD_AHB], tr("IOS Reload")); else if(wiiload_ahb == 2) sprintf (options.value[WIILOAD_AHB], tr("AHB Access")); - +#ifndef VWII if(!sdgecko) sprintf (options.value[SDGECKO], tr("No")); else sprintf (options.value[SDGECKO], tr("Yes")); -#ifndef VWII + if(!bootmii_boot2) sprintf (options.value[BOOTMII_BOOT2], tr("No")); else @@ -541,8 +541,8 @@ int MenuSettingsFile() Options.wiiload_ios = atoi(options.value[WIILOAD_IOS]); Options.wiiload_ahb = wiiload_ahb; device_dat = options.value[STORAGE_DEVICE]; - Options.sdgecko = sdgecko; #ifndef VWII + Options.sdgecko = sdgecko; Options.bootmii_boot2 = bootmii_boot2; #endif Options.navigation = navigation; diff --git a/main/source/Menus/menus.h b/main/source/Menus/menus.h index ba1311c..75deb76 100644 --- a/main/source/Menus/menus.h +++ b/main/source/Menus/menus.h @@ -30,8 +30,8 @@ enum DEVICE_ICON, WIILOAD_IOS, WIILOAD_AHB, - SDGECKO, #ifndef VWII + SDGECKO, BOOTMII_BOOT2, #endif CHILDLOCK, diff --git a/main/source/Tools/load.cpp b/main/source/Tools/load.cpp index 8cc38c9..bf92294 100644 --- a/main/source/Tools/load.cpp +++ b/main/source/Tools/load.cpp @@ -109,9 +109,10 @@ void load() if(get_setting(source, "navigation") != "") Options.navigation = atoi(get_setting(source, "navigation").c_str()); +#ifndef VWII if(get_setting(source, "sdgecko") != "") Options.sdgecko = atoi(get_setting(source, "sdgecko").c_str()); -#ifndef VWII + if(get_setting(source, "bootmii_boot2") != "") Options.bootmii_boot2 = atoi(get_setting(source, "bootmii_boot2").c_str()); #endif diff --git a/main/source/Tools/save.cpp b/main/source/Tools/save.cpp index 0d3793a..38cc7e3 100644 --- a/main/source/Tools/save.cpp +++ b/main/source/Tools/save.cpp @@ -106,8 +106,8 @@ void save() save_settings << "apps_nr = \"" << Options.apps << "\"" << endl; save_settings << "quick_start = \"" << Options.quick_start << "\"" << endl; save_settings << "show_all = \"" << Options.show_all << "\"" << endl; - save_settings << "sdgecko = \"" << Options.sdgecko << "\"" << endl; #ifndef VWII + save_settings << "sdgecko = \"" << Options.sdgecko << "\"" << endl; save_settings << "bootmii_boot2 = \"" << Options.bootmii_boot2 << "\"" << endl; #endif save_settings << "navigation = \"" << Options.navigation << "\"" << endl; diff --git a/main/source/main.cpp b/main/source/main.cpp index 0f07b0c..34d1e5e 100644 --- a/main/source/main.cpp +++ b/main/source/main.cpp @@ -177,8 +177,8 @@ DefaultOptions() Options.apps = 4; Options.quick_start = 0; Options.show_all = 1; - Options.sdgecko = 1; #ifndef VWII + Options.sdgecko = 1; Options.bootmii_boot2 = 0; #endif Options.navigation = 0; diff --git a/main/source/main.h b/main/source/main.h index 137dfa6..d917f2a 100644 --- a/main/source/main.h +++ b/main/source/main.h @@ -127,7 +127,9 @@ struct SOptions bool quick_start; bool show_all; int device_icon; +#ifndef VWII bool sdgecko; +#endif bool navigation; bool network; bool wifigecko; diff --git a/main/source/xprintf.cpp b/main/source/xprintf.cpp index 98d4272..d024014 100644 --- a/main/source/xprintf.cpp +++ b/main/source/xprintf.cpp @@ -26,10 +26,15 @@ extern "C" void sdprintf(const char * format, ...) extern "C" void xprintf(const char *str, ...) { +#ifndef VWII if(Options.sdgecko) sdprintf(str); + else if +#else + if +#endif - else if(Options.wifigecko) + (Options.wifigecko) wifi_printf(str); else gprintf(str);