From 6a646717d87cc4b959f36330f09504dec8baf7c6 Mon Sep 17 00:00:00 2001 From: shweet Date: Thu, 14 Aug 2025 22:15:39 -0400 Subject: [PATCH] Exit confirmation changes --- README.md | 14 +++++--------- src/imgui.cpp | 7 +++---- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 3298515..d334188 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Anm2ed +# Anm2Ed ![Preview](https://shweetz.net/files/projects/anm2ed/preview.png) @@ -17,13 +17,12 @@ A reimplementation of *The Binding of Isaac: Rebirth*'s proprietary animation ed ## Dependencies Download these from your package manager: - - SDL3 - GLEW - + Note, to render animations, you'll need to download [FFmpeg](https://ffmpeg.org/download.html) and specify its install path in the program. -## Build +## Build (Linux) After cloning and enter the repository's directory, make sure to initialize the submodules: @@ -33,10 +32,7 @@ Then: ``` mkdir build - cd build - cmake .. - -make -j -``` +make +``` \ No newline at end of file diff --git a/src/imgui.cpp b/src/imgui.cpp index 73dcf5b..9881fb5 100644 --- a/src/imgui.cpp +++ b/src/imgui.cpp @@ -1250,8 +1250,6 @@ static void _imgui_taskbar(Imgui* self) if (_imgui_option_popup(IMGUI_EXIT_CONFIRMATION, self)) self->isQuit = true; - else - self->isTryQuit = false; _imgui_selectable(IMGUI_WIZARD.copy({}), self); @@ -2584,9 +2582,10 @@ void imgui_update(Imgui* self) break; } case SDL_EVENT_QUIT: - imgui_quit(self); - if (imgui_is_popup_open(IMGUI_EXIT_CONFIRMATION.popup)) + if (self->isTryQuit) self->isQuit = true; + else + imgui_quit(self); break; default: break;