Package: chocolate-doom
Version: 1.2.1-1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

The game attempts to create wad-specific directory while
~/.chocolate-doom/savegames doesn't exist yet, and hangs as a result.

Attached patch tries to create that savegames dir first. 

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.26-2-686

Debian Release: 5.0.3
  990 stable          www.debian-multimedia.org 
  990 stable          volatile.debian.org 
  990 stable          security.debian.org 
  990 stable          mirror.noreply.org 
  990 stable          ftp.fi.debian.org 
  500 testing         www.debian-multimedia.org 
  500 testing         security.debian.org 
  500 testing         ftp.fi.debian.org 
  500 testing         deb.opera.com 
  500 lenny           www.lamaresh.net 

--- Package information. ---
Depends                 (Version) | Installed
=================================-+-==============
libc6                  (>= 2.3.4) | 2.9-25
libsdl-mixer1.2        (>= 1.2.6) | 1.2.8-6+b1
libsdl-net1.2                     | 1.2.7-2
libsdl1.2debian     (>= 1.2.10-1) | 1.2.13-4+b1
doom-wad                          | 


Package's Recommends field is empty.

Package's Suggests field is empty.



diff -U 3 -H -d -r -N -- chocolate-doom-1.2.1/src/d_iwad.c chocolate-doom-1.2.1.patched/src/d_iwad.c
--- chocolate-doom-1.2.1/src/d_iwad.c	2008-12-11 01:29:29.000000000 +0500
+++ chocolate-doom-1.2.1.patched/src/d_iwad.c	2009-09-26 21:24:01.000000000 +0600
@@ -697,6 +697,10 @@
         }
 
         savegamedir = Z_Malloc(strlen(configdir) + 30, PU_STATIC, 0);
+
+        sprintf(savegamedir, "%ssavegames", configdir);
+        M_MakeDirectory(savegamedir);
+
         sprintf(savegamedir, "%ssavegames%c%s%c", configdir,
                              DIR_SEPARATOR, iwad_name, DIR_SEPARATOR);
 

Reply via email to