Various improvements to QR scanner
* Improve QR scanner initialization time * Fix race condition with QR scanner and button spamming * Don't show black screen before QR scanner has loaded * Show loading message for QR scanner
This commit is contained in:
@@ -449,9 +449,11 @@ int main(void)
|
||||
else if(!qr_mode && !preview_mode && kDown & KEY_R) //toggle QR mode
|
||||
{
|
||||
enable_qr:
|
||||
draw_base_interface();
|
||||
draw_text_center(GFX_TOP, 100, 0.5f, 0.6f, 0.6f, colors[COLOR_WHITE], "Loading QR Scanner...");
|
||||
end_frame();
|
||||
if(R_SUCCEEDED(camInit()))
|
||||
{
|
||||
camExit();
|
||||
u32 out;
|
||||
ACU_GetWifiStatus(&out);
|
||||
if(out)
|
||||
|
||||
Reference in New Issue
Block a user