Skip to content

Commit

Permalink
Fixed 2 critical bugs. Updating is perfectly safe now. Tested with up…
Browse files Browse the repository at this point in the history
…dating from 4.5 to 9.7.
  • Loading branch information
profi200 committed May 28, 2015
1 parent b7800f1 commit d12d72a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int versionCmp(std::vector<TitleInfo>& installedTitles, u64& titleID, u16 versio
}
}

return 0; // The title is not installed
return 1; // The title is not installed
}


Expand Down Expand Up @@ -100,7 +100,7 @@ void installUpdates(bool downgrade)
if((downgrade && cmpResult != 0) || (cmpResult > 0))
{
if(cmpResult < 0) deleteTitle(mediatype_NAND, ciaFileInfo.titleID);
if(ciaFileInfo.titleID == 0x0004013800000002LL)
if(ciaFileInfo.titleID == 0x0004013800000002LL || ciaFileInfo.titleID == 0x0004013820000002LL)
{
printf("NATIVE_FIRM ");
installCia(mediatype_NAND, u"/updates/" + it.name);
Expand Down Expand Up @@ -132,7 +132,7 @@ int main()


consoleInit(GFX_TOP, NULL);
printf("sysUpdater 0.4b by profi200\n\n\n");
printf("sysUpdater 0.4 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");
printf("If you started the update you can't abort it!\n\n");
Expand Down

5 comments on commit d12d72a

@Ronhero
Copy link

@Ronhero Ronhero commented on d12d72a Jun 1, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way to add an option to remove the check to see if the version is the latest when installing the cia files?

I have a method of downgrading emunand that involves installing old cia files from the previous system updates. Currently I need to delete the cia files one by one and reinstall them in FBI and it just takes forever.

I would love to use your program but it skips files that are older by default. Is there a hot key to allow for this that you can implement?

@profi200
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest version has a downgrade option. It was not 100% tested however unlike the update option. I'm also not sure if new titles which don't exist on older fws will cause problems because i can't really detect these and uninstall them. Try it out i guess.

@Ronhero
Copy link

@Ronhero Ronhero commented on d12d72a Jun 1, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a method of picking out the titles that need to be installed and have been doing it successfully on about 10+ units. It just takes forever with FBI and your way would save about an hour of time.

If you want to know how I can tell what files need to be on the sd let me know. For example to go from 9.7 to 9.0 you need like 47 files but to go from 9.5 to 9.0 you need 34 files

@profi200
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to dl only some files. Download the entire set of titles and it will downgrade only what needs to be downgraded. Titles with the same version are ignored. Check the source code if you can read it.

@Ronhero
Copy link

@Ronhero Ronhero commented on d12d72a Jun 1, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll give it a try tonight thanks. My coding skills are so so but I'll give it a look.

Ill link you the guide when I am done in case you want to system transfer

Please sign in to comment.