MCPcopy Create free account
hub / github.com/averne/Fizeau / draw_error_window

Function draw_error_window

application/src/gui.cpp:527–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527void draw_error_window(Config &ctx, Result error) {
528 if (!im::Begin("Fizeau, version " VERSION "-" COMMIT, nullptr, ImGuiWindowFlags_NoResize |
529 ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoMove))
530 return;
531 FZ_SCOPEGUARD([] { im::End(); });
532
533 if (error == 1)
534 im::Text("The service is not active, check that all files are correctly installed.");
535 else
536 im::Text("Error: %#x (%04d-%04d)", error, R_MODULE(error) | 2000, R_DESCRIPTION(error));
537
538 im::TextUnformatted(
539R"(An error happened.
540Please try rebooting your console, and checking your setup:
541 - updating Fizeau.
542 - updating your CFW.
543Only the latest version of the Atmosphère CFW is supported.
544
545You can submit an issue at https://www.github.com/averne/Fizeau.
546If you do so, please be as descriptive as possible.)"
547 );
548}
549
550} // namespace fz::gui

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected