mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-12-29 02:41:48 +01:00
option for choosing wiiload ios
This commit is contained in:
parent
d74a303be3
commit
39d82bbd3e
Binary file not shown.
@ -252,7 +252,7 @@ int BootHomebrew()
|
||||
|
||||
if(Options.wiiload_ahb != 0)
|
||||
{
|
||||
IOS_ReloadIOS(SelectedIOS());
|
||||
IOS_ReloadIOS(Options.wiiload_ios);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -25,6 +25,7 @@ int temp_apps;
|
||||
bool temp_quick_start;
|
||||
bool temp_show_all;
|
||||
int temp_device_icon;
|
||||
int temp_wiiload_ios;
|
||||
int temp_wiiload_ahb;
|
||||
bool temp_navigation;
|
||||
string temp_device_dat;
|
||||
@ -71,6 +72,7 @@ int MenuSettingsFile()
|
||||
sprintf(options.name[i++], tr("Storage Device"));
|
||||
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("Childlock"));
|
||||
sprintf(options.name[i++], tr("Navigation key exchange"));
|
||||
sprintf(options.name[i++], tr("Display"));
|
||||
@ -182,6 +184,18 @@ int MenuSettingsFile()
|
||||
device_icon = change;
|
||||
break;
|
||||
|
||||
case WIILOAD_IOS:
|
||||
change = atoi(options.value[ret]);
|
||||
change++;
|
||||
if(change == 71)
|
||||
change = 80;
|
||||
else if(change == 82)
|
||||
change = 202;
|
||||
else if(change > 255)
|
||||
change = 255;
|
||||
sprintf (options.value[ret], "%i", change);
|
||||
break;
|
||||
|
||||
case WIILOAD_AHB:
|
||||
change = wiiload_ahb;
|
||||
change++;
|
||||
@ -248,6 +262,18 @@ int MenuSettingsFile()
|
||||
device_icon = change;
|
||||
break;
|
||||
|
||||
case WIILOAD_IOS:
|
||||
change = atoi(options.value[ret]);
|
||||
change--;
|
||||
if(change == 201)
|
||||
change = 81;
|
||||
else if(change == 79)
|
||||
change = 70;
|
||||
else if(change < 0)
|
||||
change = 0;
|
||||
sprintf (options.value[ret], "%i", change);
|
||||
break;
|
||||
|
||||
case WIILOAD_AHB:
|
||||
change = wiiload_ahb;
|
||||
change --;
|
||||
@ -282,6 +308,7 @@ int MenuSettingsFile()
|
||||
temp_quick_start = quick_start;
|
||||
temp_show_all = show_all;
|
||||
temp_device_icon = device_icon;
|
||||
temp_wiiload_ios = atoi(options.value[WIILOAD_IOS]);
|
||||
temp_wiiload_ahb = wiiload_ahb;
|
||||
temp_device_dat = device_dat;
|
||||
temp_navigation = navigation;
|
||||
@ -327,6 +354,7 @@ int MenuSettingsFile()
|
||||
sprintf (options.value[LANGUAGE], Options.temp_language.c_str());
|
||||
sprintf (options.value[FONT], Options.temp_font.c_str());
|
||||
sprintf (options.value[SLIDE_EFFECT], "%i", temp_slide_effect);
|
||||
sprintf (options.value[WIILOAD_IOS], "%i", temp_wiiload_ios);
|
||||
sprintf (options.value[NUMBER_OF_APPS], "%i", temp_apps);
|
||||
sprintf (options.value[STORAGE_DEVICE], temp_device_dat.c_str());
|
||||
sprintf (options.value[DISPLAY], " ");
|
||||
@ -349,6 +377,7 @@ int MenuSettingsFile()
|
||||
sprintf (options.value[LANGUAGE], Options.language);
|
||||
sprintf (options.value[FONT], Options.font);
|
||||
sprintf (options.value[SLIDE_EFFECT], "%i", Options.slide_effect);
|
||||
sprintf (options.value[WIILOAD_IOS], "%i", Options.wiiload_ios);
|
||||
sprintf (options.value[NUMBER_OF_APPS], "%i", Options.apps);
|
||||
sprintf (options.value[STORAGE_DEVICE], device_dat.c_str());
|
||||
sprintf (options.value[DISPLAY], " ");
|
||||
@ -463,6 +492,7 @@ int MenuSettingsFile()
|
||||
Options.quick_start = quick_start;
|
||||
Options.show_all = show_all;
|
||||
Options.device_icon = device_icon;
|
||||
Options.wiiload_ios = atoi(options.value[WIILOAD_IOS]);
|
||||
Options.wiiload_ahb = wiiload_ahb;
|
||||
device_dat = options.value[STORAGE_DEVICE];
|
||||
Options.navigation = navigation;
|
||||
|
@ -28,6 +28,7 @@ enum
|
||||
SHOW_ALL,
|
||||
STORAGE_DEVICE,
|
||||
DEVICE_ICON,
|
||||
WIILOAD_IOS,
|
||||
WIILOAD_AHB,
|
||||
CHILDLOCK,
|
||||
NAVIGATION,
|
||||
|
@ -133,6 +133,9 @@ void load()
|
||||
if(get_setting(source, "wiiload_ahb") != "")
|
||||
Options.wiiload_ahb = atoi(get_setting(source, "wiiload_ahb").c_str());
|
||||
|
||||
if(get_setting(source, "wiiload_ios") != "")
|
||||
Options.wiiload_ios = atoi(get_setting(source, "wiiload_ios").c_str());
|
||||
|
||||
if(get_setting(source, "system") != "")
|
||||
Settings.system = atoi(get_setting(source, "system").c_str());
|
||||
|
||||
|
@ -110,6 +110,7 @@ void save()
|
||||
save_settings << "device_dat = \"" << Settings.device_dat << "\"" << endl;
|
||||
save_settings << "device_icon = \"" << Options.device_icon << "\"" << endl;
|
||||
save_settings << "wiiload_ahb = \"" << Options.wiiload_ahb << "\"" << endl;
|
||||
save_settings << "wiiload_ios = \"" << Options.wiiload_ios << "\"" << endl;
|
||||
save_settings << "system = \"" << Settings.system << "\"" << endl;
|
||||
save_settings << "top = \"" << Settings.top << "\"" << endl;
|
||||
save_settings << "bottom = \"" << Settings.bottom << "\"" << endl;
|
||||
|
@ -156,6 +156,7 @@ DefaultOptions()
|
||||
sprintf (Options.temp_code, "NULL");
|
||||
|
||||
Options.slide_effect = 1;
|
||||
Options.wiiload_ios = 58;
|
||||
Options.last_category = 1;
|
||||
Options.apps = 4;
|
||||
Options.quick_start = 0;
|
||||
|
@ -129,6 +129,7 @@ struct SOptions
|
||||
bool network;
|
||||
bool newrevtext;
|
||||
int wiiload_ahb;
|
||||
int wiiload_ios;
|
||||
};
|
||||
extern struct SOptions Options;
|
||||
|
||||
|
3
updates
3
updates
@ -10,7 +10,8 @@
|
||||
- <no_ios_reload/>: alias for <ahb_access/> (compat with HBC)
|
||||
- <force_ios_reload/> or nothing: just reload the selected IOS
|
||||
- if we are in neek2o we do nothing
|
||||
- for wiiload there is now an options to choose what to do
|
||||
- for wiiload there are now two options to choose which IOS to
|
||||
use and whether to reload it
|
||||
- BUGFIX: fix compilation with libOGC 1.8.11 and newer
|
||||
|
||||
//rev38:
|
||||
|
Loading…
Reference in New Issue
Block a user