Skip to content

feat: Add QR code to the panic screen for coping the data to another device - #288

Open
Polyfish0 wants to merge 1 commit into
devkitPro:masterfrom
Polyfish0:master
Open

Polyfish0 wants to merge 1 commit into
devkitPro:masterfrom
Polyfish0:master

Conversation

@Polyfish0

Copy link
Copy Markdown

Adds a QR view to the Wii and GameCube panic screen so users can scan and copy crash reports with a phone. The text view still opens first by default. Applications can choose the initial view with SYS_SetPanicDefaultView().

Tap RESET or press GameCube controller Y to switch views. Hold RESET or press Z to reload. Without input, the views alternate every 15 seconds so both are accessible on Wii mini.

Both platform builds passed. QR output was verified on real Wii hardware and because I only have a Wii, I tested the rest in Dolphin.

@korbosoft

Copy link
Copy Markdown

personally i feel like this'd fit better outside of libogc, as an external library that can be used in place of the default crash handler

@mardy

mardy commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

I don't think that the feature is worth the memory it takes away from the application. And why not just take a photo of the screen?

@fincs

fincs commented Dec 1, 2026

Copy link
Copy Markdown
Member

I am of the same opinion. The feature is cool, however the code size/memory usage costs every single application built with libogc would need to pay seem too high. I think this is better suited as a third party library. @DacoTaco any thoughts?

@Polyfish0

Copy link
Copy Markdown
Author

Okay, I see what you mean. I actually hadn’t thought about the increased memory usage either. I also wasn’t aware that you could replace the panic handler. It makes perfect sense that this is possible; it just didn’t occur to me, so I never looked into the code.

Regarding the idea of making this into a library: How about if I rewrite the code so that it’s a separate statically linked library in the libogc repository? Then developers would still have to use a linker flag to enable the feature. That would address your concerns about memory usage. Plus, it would give us a place to add other panic handler features without making them mandatory for every binary.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

4 participants