Exit confirmation changes
This commit is contained in:
14
README.md
14
README.md
@@ -1,4 +1,4 @@
|
|||||||
# Anm2ed
|
# Anm2Ed
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -17,13 +17,12 @@ A reimplementation of *The Binding of Isaac: Rebirth*'s proprietary animation ed
|
|||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
Download these from your package manager:
|
Download these from your package manager:
|
||||||
|
|
||||||
- SDL3
|
- SDL3
|
||||||
- GLEW
|
- GLEW
|
||||||
|
|
||||||
Note, to render animations, you'll need to download [FFmpeg](https://ffmpeg.org/download.html) and specify its install path in the program.
|
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:
|
After cloning and enter the repository's directory, make sure to initialize the submodules:
|
||||||
|
|
||||||
@@ -33,10 +32,7 @@ Then:
|
|||||||
|
|
||||||
```
|
```
|
||||||
mkdir build
|
mkdir build
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
cmake ..
|
cmake ..
|
||||||
|
make
|
||||||
make -j
|
```
|
||||||
```
|
|
@@ -1250,8 +1250,6 @@ static void _imgui_taskbar(Imgui* self)
|
|||||||
|
|
||||||
if (_imgui_option_popup(IMGUI_EXIT_CONFIRMATION, self))
|
if (_imgui_option_popup(IMGUI_EXIT_CONFIRMATION, self))
|
||||||
self->isQuit = true;
|
self->isQuit = true;
|
||||||
else
|
|
||||||
self->isTryQuit = false;
|
|
||||||
|
|
||||||
_imgui_selectable(IMGUI_WIZARD.copy({}), self);
|
_imgui_selectable(IMGUI_WIZARD.copy({}), self);
|
||||||
|
|
||||||
@@ -2584,9 +2582,10 @@ void imgui_update(Imgui* self)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SDL_EVENT_QUIT:
|
case SDL_EVENT_QUIT:
|
||||||
imgui_quit(self);
|
if (self->isTryQuit)
|
||||||
if (imgui_is_popup_open(IMGUI_EXIT_CONFIRMATION.popup))
|
|
||||||
self->isQuit = true;
|
self->isQuit = true;
|
||||||
|
else
|
||||||
|
imgui_quit(self);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user