From 5be0d2aa012d3e5f49b3edb74e166ebefd7ed43c Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Sun, 14 May 2023 17:55:51 +0200 Subject: [PATCH] Cleanup diff --- debian/patches/remove-sdl-signal-handler.patch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/debian/patches/remove-sdl-signal-handler.patch b/debian/patches/remove-sdl-signal-handler.patch index be1ee7a..4adf9a4 100644 --- a/debian/patches/remove-sdl-signal-handler.patch +++ b/debian/patches/remove-sdl-signal-handler.patch @@ -1,12 +1,10 @@ --- a/src/tone/tone.cpp +++ b/src/tone/tone.cpp -@@ -248,7 +248,8 @@ +@@ -248,6 +248,7 @@ void initTone() { -- if(SDL_Init( SDL_INIT_AUDIO ) < 0) { + SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1"); -+ if(SDL_Init( SDL_INIT_AUDIO ) < 0) { + if(SDL_Init( SDL_INIT_AUDIO ) < 0) { printf("Erreur d'initialisation de la SDL : %s",SDL_GetError());//on affiche l'erreur exit( EXIT_FAILURE); - }