Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] (PR#3409) Add flag to get SDL core dump
Home

[Freeciv-Dev] (PR#3409) Add flag to get SDL core dump

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#3409) Add flag to get SDL core dump
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Thu, 13 Feb 2003 03:08:24 -0800


Add SDL_INIT_NOPARACHUTE to avoid SDL parachutes. We want core dumps.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Premature optimization is the root of all evil."
    -- D. E. Knuth in "Structured Programming with go to Statements"

Index: client/audio_sdl.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/audio_sdl.c,v
retrieving revision 1.4
diff -u -u -r1.4 audio_sdl.c
--- client/audio_sdl.c  2003/01/03 11:55:45     1.4
+++ client/audio_sdl.c  2003/02/13 11:03:34
@@ -150,9 +150,9 @@
 static int init_sdl_audio(void)
 {
   if (SDL_WasInit(SDL_INIT_VIDEO)) {
-    return SDL_InitSubSystem(SDL_INIT_AUDIO);
+    return SDL_InitSubSystem(SDL_INIT_AUDIO | SDL_INIT_NOPARACHUTE);
   } else {
-    return SDL_Init(SDL_INIT_AUDIO);
+    return SDL_Init(SDL_INIT_AUDIO | SDL_INIT_NOPARACHUTE);
   }
 }
 
Index: client/gui-sdl/graphics.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-sdl/graphics.c,v
retrieving revision 1.10
diff -u -u -r1.10 graphics.c
--- client/gui-sdl/graphics.c   2003/01/30 19:09:26     1.10
+++ client/gui-sdl/graphics.c   2003/02/13 11:03:49
@@ -708,6 +708,8 @@
   Main.screen = NULL;
   Main.rects_count = 0;
 
+  iFlags |= SDL_INIT_NOPARACHUTE;
+
   if (SDL_WasInit(SDL_INIT_AUDIO)) {
     error = (SDL_InitSubSystem(iFlags) < 0);
   } else {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#3409) Add flag to get SDL core dump, Raimar Falke <=