Skip to content

Commit

Permalink
Downgrading now works
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxSH committed Jan 3, 2016
1 parent 1f7c726 commit 213aed9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/main.cpp
Expand Up @@ -108,7 +108,8 @@ void installUpdates(bool downgrade)
{
printf("NATIVE_FIRM ");
installCia(u"/updates/" + it.name, MEDIATYPE_NAND);
if((res = AM_InstallNativeFirm())) throw titleException(_FILE_, __LINE__, res, "Failed to install NATIVE_FIRM!");
if(!downgrade) { if((res = AM_InstallNativeFirm())) throw titleException(_FILE_, __LINE__, res, "Failed to install NATIVE_FIRM!"); }
else { if((res = AM_InstallFirm(ciaFileInfo.titleID))) throw titleException(_FILE_, __LINE__, res, "Failed to install NATIVE_FIRM!"); }
printf("\x1b[32m Installed\x1b[0m\n");
}
else remainingCias.push_back(it.name);
Expand All @@ -134,9 +135,8 @@ int main()

bool once = false;



consoleInit(GFX_TOP, NULL);

printf("sysUpdater 0.4.2b by profi200\n\n\n");
printf("(A) update\n(Y) downgrade\n(B) exit\n\n");
printf("Use the HOME button if you run the CIA version.\n");
Expand Down

0 comments on commit 213aed9

Please sign in to comment.