nton icon indicating copy to clipboard operation
nton copied to clipboard

Pressing + or any action to exit a Homebrew, fails and reopens instead

Open rlaphoenix opened this issue 3 years ago • 7 comments

Describe the bug Any action that is meant to exit the Homebrew (and go back to e.g., the Homebrew Menu or Home Menu) is failing and instead just closes and reopens the Homebrew.

To Reproduce Steps to reproduce the behavior:

  1. Make an NSP for Homebrew Menu or use the premade one.
  2. Install it with Goldleaf.
  3. Open it and press + once the menu has fully loaded.

You will see it go black and reopen, kind of like a refresh in this case.

Expected behavior It was meant to close the homebrew and the forwarder entirely.

Screenshots N/A.

Additional context Some users have reported crashes when done instead of it closing and reopening.

rlaphoenix avatar Nov 11 '22 10:11 rlaphoenix

This issue is likely needing to be handled by the exefs ROM, of which we do not have source code for at the moment. So currently this issue is out of scope of this project.

rlaphoenix avatar Nov 11 '22 10:11 rlaphoenix

The Forwarder ROM is now Open-Source: https://github.com/Skywalker25/Forwarder-Mod

rlaphoenix avatar Nov 13 '22 09:11 rlaphoenix

I did some research and I found that someone else had made a patch to allow a nro forwarder to exit via B/+button or by closing the nro via inside the forwarder. I copied the patch into the forwarder mod and it seems to have work, I've only tried awoo-installer nro, and a snes retroarch forwarder. awoo installer was able to exit to home menu via B button and closing in-app. and the retroarch forwarder was able to exit to home menu via closing the game from retroarch menu. the exefs contains the latest hbl 2.4.3 forwarder mod and the exit patch exefs.zip

Skywalker25 avatar Nov 14 '22 04:11 Skywalker25

I did some research and I found that someone else had made a patch to allow a nro forwarder to exit via B/+button or by closing the nro via inside the forwarder. I copied the patch into the forwarder mod and it seems to have work, I've only tried awoo-installer nro, and a snes retroarch forwarder. awoo installer was able to exit to home menu via B button and closing in-app. and the retroarch forwarder was able to exit to home menu via closing the game from retroarch menu. the exefs contains the latest hbl 2.4.3 forwarder mod and the exit patch exefs.zip

Could you add the modifications to your source repository of the Forwarder-Mod?

rlaphoenix avatar Nov 18 '22 08:11 rlaphoenix

It seems to work, but DBI is very weird with it. It seems to be laggy when first opening it and selecting the Exit option from the menu or pressing the B button causes it to freeze for a good 15-30s and then it closes (no errors). Strange. Do you get this behaviour as well?

Edit: If you wait that 15-30s before exiting, it exits immediately. This is likely just DBI having a fit. If you can put the patches on your GitHub repo then I will push this and make a new version release.

rlaphoenix avatar Dec 11 '22 02:12 rlaphoenix

I've committed the exefs rom you provided to master, but source code for the changes would be great.

rlaphoenix avatar Dec 11 '22 03:12 rlaphoenix

I assume he meant this patch: https://github.com/switchbrew/nx-hbloader/compare/master...HookedBehemoth:nx-hbloader:master

I forgot how this was supposed to work but there also was a custom hbmenu https://github.com/switchbrew/nx-hbmenu/compare/master...HookedBehemoth:nx-hbmenu:sane_exit

HookedBehemoth avatar Jun 06 '23 12:06 HookedBehemoth