git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 3116f63e376197f7b000f5c0420f85726c6f6a8a
parent b5cd06a41e0ffc2582e5c5eac7bfa3388f3356e0
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed, 19 Jun 2024 20:02:41 +0300

Merge pull request #631 from laamaa/bugfix/wayland_crash_on_exit

call SDL_Quit() on exit to prevent a crash on app exit with linux/wayland
Diffstat:
MSDL/main.c4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/SDL/main.c b/SDL/main.c @@ -1063,6 +1063,10 @@ int main(int argc, char **argv) #endif SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO); + // This is, essentially, best-effort. + // This function will not be called if the process is terminated in any way, anyhow. + atexit(SDL_Quit); + if ((console_supported = CON_start(completer))) { CON_set_repeat_empty(true); CON_printf("SameBoy v" GB_VERSION "\n");

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.