mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-11-28 12:04:23 +01:00
improved that ios_reload stuff:
ahb_access = patch_ahbprot + ios_reload force_ios_reload = ios_reload no_ios_reload = nothing
This commit is contained in:
parent
8d2513e849
commit
9b91755cd0
Binary file not shown.
@ -39,6 +39,7 @@ static char temp_arg[1024];
|
||||
std::string filepath;
|
||||
|
||||
extern bool in_neek;
|
||||
extern bool wiiload;
|
||||
|
||||
void arg_init()
|
||||
{
|
||||
@ -242,14 +243,22 @@ int BootHomebrew()
|
||||
|
||||
if (in_neek == false)
|
||||
{
|
||||
if(Settings.force_reload != "")
|
||||
if(!wiiload)
|
||||
{
|
||||
//keep ahbprot rights in new ios
|
||||
Patch_ahbprot();
|
||||
if(Settings.force_reload == "HW_AHBPROT")
|
||||
{
|
||||
//keep ahbprot rights in new ios
|
||||
Patch_ahbprot();
|
||||
IOS_ReloadIOS(SelectedIOS());
|
||||
}
|
||||
else if(Settings.force_reload != "NORELOAD")
|
||||
{
|
||||
IOS_ReloadIOS(SelectedIOS());
|
||||
}
|
||||
}
|
||||
IOS_ReloadIOS(SelectedIOS());
|
||||
}
|
||||
wiiload_args = 0;
|
||||
|
||||
wiiload_args = 0;
|
||||
|
||||
/*this will also be called when wiiloading an application
|
||||
will need to check if it's expected behavour? */
|
||||
|
@ -31,7 +31,6 @@ void add(string device, string apps_path)
|
||||
char pathname[200];
|
||||
char pathmeta[200];
|
||||
string pathboot;
|
||||
int rel_ios = 0;
|
||||
|
||||
pdir=opendir((device + ":/" + apps_path).c_str());
|
||||
|
||||
@ -50,7 +49,7 @@ void add(string device, string apps_path)
|
||||
{
|
||||
sprintf(pathmeta, (device + ":/" + apps_path + "%s/meta.xml").c_str() ,pent->d_name);
|
||||
|
||||
string line, quelltext, name, info, foldername, iconpath, arg, force_reload;
|
||||
string line, quelltext, name, info, foldername, iconpath, arg, force_reload, temp_reload, temp_reload2, temp_reload3;
|
||||
ifstream in(pathmeta);
|
||||
while(getline(in, line))
|
||||
quelltext = quelltext + line + "\n";
|
||||
@ -75,29 +74,21 @@ void add(string device, string apps_path)
|
||||
//hbc always reloads the ios, so we will as well
|
||||
//unless we are in neek mode (it's just a waste of time there)
|
||||
|
||||
force_reload = parser(quelltext, "<force_ios_reload", ">");
|
||||
if (force_reload[0] != 0)
|
||||
temp_reload = parser(quelltext, "<force_ios_reload", ">");
|
||||
temp_reload2 = parser(quelltext, "<ahb_access", ">");
|
||||
temp_reload3 = parser(quelltext, "<no_ios_reload", ">");
|
||||
if (temp_reload[0] != 0)
|
||||
{
|
||||
rel_ios = 1;
|
||||
force_reload[0] = 0;
|
||||
force_reload = "RELOAD";
|
||||
}
|
||||
force_reload = parser(quelltext, "<ahb_access", ">");
|
||||
if (force_reload[0] != 0)
|
||||
else if (temp_reload2[0] != 0)
|
||||
{
|
||||
rel_ios = 1;
|
||||
force_reload[0] = 0;
|
||||
force_reload = "HW_AHBPROT";
|
||||
}
|
||||
force_reload = parser(quelltext, "<no_ios_reload", ">");
|
||||
if (force_reload[0] != 0)
|
||||
else if (temp_reload3[0] != 0)
|
||||
{
|
||||
rel_ios = 1;
|
||||
force_reload = "NORELOAD";
|
||||
}
|
||||
if (rel_ios == 1)
|
||||
{
|
||||
force_reload[0] = '/';
|
||||
force_reload[1] = 0;
|
||||
}
|
||||
|
||||
|
||||
size_t amount_read;
|
||||
FILE *fp = fopen(iconpath.c_str(),"r"); //open the png file
|
||||
|
Loading…
Reference in New Issue
Block a user