diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-04 23:39:24 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-04 23:39:24 +0100 |
| commit | 64308c9e520dbd8e72b675d0ba064ecdaf9bd494 (patch) | |
| tree | ff8dc176d62340df9565e424f19b9d6349c4e8b8 /lib/nes/app/application.hh | |
| parent | 79553ab1fa3d707612e80dd03bf95ca65fa0c411 (diff) | |
add error handling to ui
Diffstat (limited to 'lib/nes/app/application.hh')
| -rw-r--r-- | lib/nes/app/application.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/nes/app/application.hh b/lib/nes/app/application.hh index 724f2b6..81e6516 100644 --- a/lib/nes/app/application.hh +++ b/lib/nes/app/application.hh @@ -3,6 +3,7 @@ #include "nes/app/input/input-manager.hh" #include "nes/app/ui/screen-title.hh" #include "nes/app/ui/screen-browser.hh" +#include "nes/app/ui/screen-error.hh" #include "nes/sys/nes.hh" #include "nes/common/box.hh" #include "nes/common/display.hh" @@ -27,6 +28,7 @@ namespace nes::app { public: display& base; + screen* popup{ nullptr }; screen* screen{ nullptr }; explicit display_proxy(display& base) @@ -45,6 +47,7 @@ namespace nes::app box<sys::nes> console_{}; screen_title screen_title_; screen_browser screen_browser_; + screen_error screen_error_; public: explicit application(display&, input_device_keyboard&, file_browser& file_browser); @@ -62,5 +65,6 @@ namespace nes::app private: auto handle_action(action) -> void; + auto show_error(std::string_view message, status error) -> void; }; } // namespace nes::app
\ No newline at end of file |
