Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBL does not re-open after exiting an RPX program #24

Closed
CreeperMario opened this issue Dec 24, 2016 · 1 comment
Closed

HBL does not re-open after exiting an RPX program #24

CreeperMario opened this issue Dec 24, 2016 · 1 comment

Comments

@CreeperMario
Copy link

CreeperMario commented Dec 24, 2016

At the end of an HBL ELF program, we can simply call return 0; or return EXIT_SUCCESS; to return to HBL. However, calling return 0; at the end of an RPX program freezes the console.

I was able to work around this by calling SYSRelaunchTitle before returning. This triggers Mii Maker/HBL to reload, bringing be back to the homebrew menu.

The issue with this is it is not compatible with ProcUI (HOME Menu, because SYSRelaunchTitle and _SYSLaunchMiiStudio both require access to the bucket memory, which we cannot access while the program is behind the HOME Menu or exiting)

I was wondering if there was a cleaner method of exiting an RPX program running under HBL, while retaining functionality to return to HBL after the RPX file has exited.

@CreeperMario
Copy link
Author

The solution to this is to call SYSRelaunchTitle(0, NULL); at the end of the RPX program. This will return to HBL without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant