| 525 | } |
| 526 | |
| 527 | void 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( |
| 539 | R"(An error happened. |
| 540 | Please try rebooting your console, and checking your setup: |
| 541 | - updating Fizeau. |
| 542 | - updating your CFW. |
| 543 | Only the latest version of the Atmosphère CFW is supported. |
| 544 | |
| 545 | You can submit an issue at https://www.github.com/averne/Fizeau. |
| 546 | If you do so, please be as descriptive as possible.)" |
| 547 | ); |
| 548 | } |
| 549 | |
| 550 | } // namespace fz::gui |