wiiu-env / Aroma

336 stars 3 forks source link

Custom C homebrew app makes you stuck on screen #32

Closed Alfredoes234 closed 1 year ago

Alfredoes234 commented 1 year ago

I'm try to get Into programming custom firmware for the WIIU with the little resources there are and when I run the .wuhb app it's fine. tmp-cam-6294045552050483318

But after trying to close it freezes

https://user-images.githubusercontent.com/114923333/230639362-8af50070-b4ab-4ec9-8f8a-dfa6596bc32c.mp4

So I don't know if I need to do something or its a bug on your side.

Alfredoes234 commented 1 year ago

And I have tried to wait one through for like 10 minutes but nothing happens

Maschell commented 1 year ago

Impossible to tell without seeing the code of the application or (crash) logs. Did you implement the ProcUI loop properly? Does it softlock or crash?

Can you send me the .rpx?

Alfredoes234 commented 1 year ago

sure, but keep in mind I probably do have it wrong because the documentation for creating WIIU HB apps is very bad, it softlocks when It happens and I have no idea what the ProcUI is.

Alfredoes234 commented 1 year ago

sadly I couldn't import it through Github so here's a mediafire link (https://www.mediafire.com/file/e7j3ptstn1rdwuv/helloworld.rpx/file).

Maschell commented 1 year ago

Looks like the application is drawing to the screen while exiting. Make sure to only draw then the app is in foreground.

If you're using OSScreen, you can look at AromaUpdater's DrawUtils for having callbacks which handle this for your:

https://github.com/wiiu-env/AromaUpdater/blob/80f09f6c3e068a67920114508ddbce3eca42474e/source/utils/DrawUtils.cpp#L72-L73

Alfredoes234 commented 1 year ago

Thanks dude