Homebrew RELEASE SwitchGuide-Updater

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
This is an updater for Atmosphere + Hekate + Homebrew Launcher.

icon.png


It does not install Atmosphere or Hekate. To do that, you should follow switchguide.xyz. This program instead updates the following files:

  • fusee-primary and fusee-secondary. (The main components of Atmosphere containing the bootloader and KIP files.)
  • bundled atmosphere exefs replacements. (creport, FW version string, fatal are amongst these.)
  • update.bin (Hekate 4.x+ loads update.bin if it exists.)

Written using pyNX.

To use this:
  1. Install pyNX using the Homebrew browser.
  2. Download switchguideupdater.py from the URL below.
  3. Copy it to your SD to the switch/pyNX folder
  4. Run pyNX from the HBL and select switchguideupdater.py.

You'll need to run the updater at least once for both Hekate and Atmosphere to make it save the current version.

Download(switchbru) (GBATemp download center) | Source code | Serverside source code

Credits:
  • pyNX discord for helping me out with using pyNX/imgui.

screen.png
 
Last edited by Ev1l0rd,

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
19,011
Trophies
2
Age
29
Location
New York City
XP
13,379
Country
United States
  • creport (Very important module that uses layeredFS to redirect switch error reports to the SD card.)
Actually creport is not enabled through LayeredFS but through the loader sysmodule. It reads the exefs from the SD card and replaces it on the console. In case you don't believe me, try loading creport without fs_mitm.kip with V1.0 of kezplez-nx; the crash report will still redirect to the SD card. Its also why SX OS does not support creport because they're loader sysmodule is not designed to do so.
 
  • Like
Reactions: XxShalevElimelechxX

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
Actually creport is not enabled through LayeredFS but through the loader sysmodule. It reads the exefs from the SD card and replaces it on the console. In case you don't believe me, try loading creport without fs_mitm.kip with V1.0 of kezplez-nx; the crash report will still redirect to the SD card. Its also why SX OS does not support creport because they're loader sysmodule is not designed to do so.
Removed, my mistake.
 
  • Like
Reactions: Draxzelex

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,874
Trophies
2
XP
29,187
Country
United Kingdom
Nice, i was thinking we need one of these.

I'm assuming "3ds/pyNX folder" in op is meant to be "switch/pyNX folder".

The files you mention for atmosphere, are they the only ones that get updated, or if not would you consider adding others as necessary? I haven't looked at the source yet but I assume your server code is grabbing & unzipping the latest atmosphere release so it can serve the individual files to the client.
 

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
Nice, i was thinking we need one of these.

I'm assuming "3ds/pyNX folder" in op is meant to be "switch/pyNX folder".

The files you mention for atmosphere, are they the only ones that get updated, or if not would you consider adding others as necessary? I haven't looked at the source yet but I assume your server code is grabbing & unzipping the latest atmosphere release so it can serve the individual files to the client.
Pretty much, yeah. And that mistake was corrected, thanks.

It downloads and extracts the Atmosphere and Hekate release (from Hekate it only extracts hekate_ctcaer.bin and from Atmosphere it extracts fusee-primary, fusee-secondary and creport).

Only reason I'm not using the GitHub API directly rn is because libssl doesn't work yet on PyNX. Once that is available, I'll get rid of the server component entirely.
 
Last edited by Ev1l0rd,
  • Like
Reactions: hippy dave

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
1.1.0 released.

Changelog:
  • self-updater added, script can now properly accomodate for changes between releases without being reliant on updating the script manually. (Note: ServerScripts have been changed to accomodate.)
  • Tracebacks are now fully printed to the screen, instead of just the Exception. This should make troubleshooting slightly easier.

It's highly advised to update to this version as it permits me to easily update/change the script to accommodate for new files that might need updating in future Atmosphere/Hekate releases.
 
  • Like
Reactions: hippy dave

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
1.1.1 released.

Changelog:
  • Add the boot2 exefs kip from the 0.7.4 release.
    • This fixes a minor issue where users that updated to Atmosphere 0.7.4 would no longer be able to see that they launched Atmosphere in the settings. Users who already updated should update again to get this kip.
This release is why I added the self-updater. The program will prompt you if you want to update on start.
 

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
New update kindof not really:
  • Program is on the https://www.switchbru.com/appstore/#/app/SwitchGuide-Updater now. Also theres now a logo for it (kindof, my GIMP skills aren't the best, if anyone can make something better, I'll gladly take it). You can see it to at the top of the thread.
  • Added a screenshot to the thread for anyone who wants to see how it looks before downloading.
Not really any program changes, but this is still worth adding.
 

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
New update:
  • Added fatal module (new in Atmosphere 0.8.0) to the list of updated files.
  • Functionized the file downloading since code repetition be bad.
If you want to update to 6.2, update first with this updater, then update through system settings or however you update your system.
 
  • Like
Reactions: hippy dave

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
OP
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
Update 1.4.0 released.

This changes some stuff for a couple of undocumented changes in file locations for Atmosphere 0.8.2.

Changelog:
  • Remove BCT.ini from sdroot if it exists
  • Remove fusee-primary.bin from sdroot if it exists
  • Remove fusee-secondary.bin from sdroot if it exists
  • Update hekate_ipl if fusee primary was changed.
  • Change file locations of fusee-primary and fusee-secondary.
 
  • Like
Reactions: hippy dave

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: show him fighting in ww2