Fix crash with event watchers + handle SDL loop better + shut down more appropriately

This commit is contained in:
irisz64
2025-05-27 15:30:36 +02:00
parent ab44f6d980
commit 4f596f5856
11 changed files with 71 additions and 104 deletions

View File

@@ -11,6 +11,7 @@ class KaizenGui final {
gui::NativeWindow window;
public:
explicit KaizenGui() noexcept;
~KaizenGui();
double fpsCounter = -1.0;
gui::MenuBar<true> menuBar;
gui::MenuItem actionPause{"Pause", nullptr, false}, actionStop{"Stop", nullptr, false}, actionReset{"Reset", nullptr, false};
@@ -21,7 +22,7 @@ public:
gui::PopupWindow about{"About Kaizen"};
gui::StatusBar statusBar{};
int run();
void run();
void LoadTAS(const std::string &path) const noexcept;
void LoadROM(const std::string &path) noexcept;
private: