git.y1.nz

SameBoy

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

commit 63a02d90bc6dd057a213ad078367a10b4242e59e
parent 1923c324d9d7fbf3a71e82fe3959126b5cec06df
Author: Lior Halphon <2345928+LIJI32@users.noreply.github.com>
Date:   Mon,  2 Jun 2025 23:40:54 +0300

Merge pull request #568 from hitomi-nakayama/warn-sdl-init-error

Warn user about SDL initialization failure
Diffstat:
MSDL/main.c4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/SDL/main.c b/SDL/main.c @@ -1382,7 +1382,9 @@ int main(int argc, char **argv) signal(SIGUSR1, debugger_reset); #endif - SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO); + if (SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO) < 0) { + fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError()); + } // This is, essentially, best-effort. // This function will not be called if the process is terminated in any way, anyhow. atexit(SDL_Quit);

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