Can homebrews return to Swiss?

All your homebrew software needs & discussion
Post Reply
Nimecim
Posts: 13
Joined: Wed Nov 16, 2016 2:18 am

Can homebrews return to Swiss?

Post by Nimecim » Sat Dec 03, 2016 7:41 pm

Some homebrews (e.g. GCMM or VBA-GX) have a "back to loader" feature, but when I hit it, it just makes my Gamecube freeze. I was hoping it would either reboot the console, or go back to Swiss.

I guess it's only meant to work on Wii's with the Homebrew Channel, but why wouldn't it be removed from the Gamecube-specific builds? Is there some way to setup an SD card or a disc to make it work?

I've tried putting a dol of Swiss at the root of my SD card, as both boot.dol and loader.dol, but that didn't help. boot.dol causes Swiss to load it at the start (which is a nice way to keep it up-to-date without burning a new disc), but it doesn't solve the "back to loader" problem. Likewise, loader.dol doesn't do anything.

My Gamecube has a XenoGC installed, and I load Swiss from a disc, while I load homebrews from an SD card with an SDGecko clone in slot B.
User avatar
Sierron
Posts: 160
Joined: Mon Apr 18, 2016 11:33 pm
Location: Germany

Re: Can homebrews return to Swiss?

Post by Sierron » Sat Dec 03, 2016 10:31 pm

Normally the gamecube just resets if you exit the gamecube homebrew. What homebrew applications actually result in a freeze for your cube?

I'm also missing this feature of the applications going back to swiss instead of resetting the console. Would love that feature.
Own a couple PAL and JPN cubes. And three BBAs. Homeland and PSO I/II.
Nimecim
Posts: 13
Joined: Wed Nov 16, 2016 2:18 am

Re: Can homebrews return to Swiss?

Post by Nimecim » Sat Dec 03, 2016 11:04 pm

Well I haven't tried a lot of homebrew yet, but with those I have, I get the following behavior:
  • Cube64: I hit "Quit" and get a confirmation message. Then it fades to black, and the Gamecube freezes.
  • Not64: Same as Cube64, but it restarts the console instead of freezing.
  • VBA GX: I hit "Exit" and it freezes. By default, the exit action is set to "Return to loader", but it can be changed to restart, in which case the Gamecube restarts instead.
  • GCMM: I press the start button (labelled "Boot Loader"), and it just freezes.
Edit: Tried a few more:
  • Snes9xGX: Same as VBA GX
  • CleanRip: Exiting by pressing B restarts the console.
  • mGBA: Exiting restarts the console.
novenary
Posts: 1754
Joined: Mon Dec 30, 2013 7:50 am

Re: Can homebrews return to Swiss?

Post by novenary » Sun Dec 04, 2016 5:15 am

The Wii has starlet/IOS as a supervisor, which is how it returns to the hbc or system menu (note that they have to restart, even from games). On the GameCube, a complete dol loader would need to be integrated in each piece of homebrew.
Resetting is the best that can be done, if you boot a Swiss disc with a xenogc, or with a drive emulator, it will return to swiss without you doing anything (though you might need to resinsert your SD gecko).
Also of note is that emu_kidid is working on in-game reset which can quickly reload swiss itself with a button combo from actual games, but not homebrew.
tueidj
Posts: 564
Joined: Fri May 03, 2013 6:57 am

Re: Can homebrews return to Swiss?

Post by tueidj » Sun Dec 04, 2016 5:37 am

Wii homebrew returns by jumping to code (after checking for a matching check value) at 0x80001800, which is normally a stub placed there by HBC. GC apps could do the same (in fact it's been done, see geckoloader).
User avatar
Extrems
Posts: 1312
Joined: Tue Aug 17, 2010 10:40 pm
Location: Québec, Canada
Contact:

Re: Can homebrews return to Swiss?

Post by Extrems » Sun Dec 04, 2016 4:12 pm

Nimecim wrote:
  • mGBA: Exiting restarts the console.
Try autoexec.dol
Nimecim
Posts: 13
Joined: Wed Nov 16, 2016 2:18 am

Re: Can homebrews return to Swiss?

Post by Nimecim » Sun Dec 04, 2016 8:06 pm

Extrems wrote:
Nimecim wrote:
  • mGBA: Exiting restarts the console.
Try autoexec.dol
Just tried it and it made mGBA load Swiss instead of restarting the console :). Sadly, it didn't help with the other homebrews.
tueidj wrote:Wii homebrew returns by jumping to code (after checking for a matching check value) at 0x80001800, which is normally a stub placed there by HBC. GC apps could do the same (in fact it's been done, see geckoloader).
You mean with the USB Gecko? Does "Back to loader" only work with it (I imagine the devs are likely using one during development), or are the homebrews just doing the same as on the Wii and failing?
Streetwalker wrote:The Wii has starlet/IOS as a supervisor, which is how it returns to the hbc or system menu (note that they have to restart, even from games). On the GameCube, a complete dol loader would need to be integrated in each piece of homebrew.
Resetting is the best that can be done, if you boot a Swiss disc with a xenogc, or with a drive emulator, it will return to swiss without you doing anything (though you might need to resinsert your SD gecko).
Also of note is that emu_kidid is working on in-game reset which can quickly reload swiss itself with a button combo from actual games, but not homebrew.
Yeah, I figured that explicitly loading a dol would be the only easy way to go back to the loader without restarting. I was just wondering whether there was a standard way to do it, and why some homebrews offer a "Back to loader" feature that apparently doesn't work.
novenary
Posts: 1754
Joined: Mon Dec 30, 2013 7:50 am

Re: Can homebrews return to Swiss?

Post by novenary » Sun Dec 04, 2016 9:18 pm

tueidj wrote:Wii homebrew returns by jumping to code (after checking for a matching check value) at 0x80001800, which is normally a stub placed there by HBC. GC apps could do the same (in fact it's been done, see geckoloader).
Oh right, the switch is done on the PPC side in libogc, it's the SDK that uses the IOS to switch executables on the PPC.
tueidj
Posts: 564
Joined: Fri May 03, 2013 6:57 am

Re: Can homebrews return to Swiss?

Post by tueidj » Mon Dec 05, 2016 2:47 am

Nimecim wrote:You mean with the USB Gecko? Does "Back to loader" only work with it (I imagine the devs are likely using one during development), or are the homebrews just doing the same as on the Wii and failing?
It loads a .dol from the USBgecko's on-board flash, which is more complicated than loading one from an sd gecko.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Can homebrews return to Swiss?

Post by emu_kidid » Mon Dec 05, 2016 4:38 am

Yeah we can add a stub in that'll reboot to autoexec.dol (can this name die already? this isn't 1998)
Image
novenary
Posts: 1754
Joined: Mon Dec 30, 2013 7:50 am

Re: Can homebrews return to Swiss?

Post by novenary » Mon Dec 05, 2016 8:24 am

Just specify the name of your dol in an autorun.inf. :P

Jokes aside, it would be a nice addition to libogc or as a library that you'd simply link in and call to reload a dol.
User avatar
Sierron
Posts: 160
Joined: Mon Apr 18, 2016 11:33 pm
Location: Germany

Re: Can homebrews return to Swiss?

Post by Sierron » Mon Dec 05, 2016 10:35 pm

emu_kidid wrote:Yeah we can add a stub in that'll reboot to autoexec.dol (can this name die already? this isn't 1998)
Well, the action replay automatically loads that file, so at least for the discs it would need to stay. :?
Own a couple PAL and JPN cubes. And three BBAs. Homeland and PSO I/II.
User avatar
Diego borella
Posts: 244
Joined: Sat Jan 11, 2020 8:37 pm
Location: Brazil

Re: Can homebrews return to Swiss?

Post by Diego borella » Sat Feb 20, 2021 7:06 pm

From Swiss 0.5 r990, this feature has been incorporated. it worked for me in the apps I tested.
you must choose the path renaming the Swiss as:
/autoexec.dol
/boot.dol
/boot2.dol
/igr.dol
/ipl.dol
it takes a while for the return, but it's working.
SWISS USER :geek:
Post Reply