Package: nethack-qt Version: 3.4.3-10.5 Severity: wishlist Tags: patch
A long long time ago I sent this patch to gentoo where it got lost somewhere in the bugreporting system, I also sent it to nethack.org, where it was accepted, and is listed as bug Q343-2. Now I have come to my senses and returned to debian, and offer this minor improvement here. Description: When nethack-qt starts, it searces for existing saved games, and if they exist, it offers the player to start from a saved game, before creating a new game. Nowadays, most distributions doesn't save games under /usr/lib/games/nethack/ anymore, but nethack-qt still looks there in this situation. The minor patch below takes care of that. *** src/files.c.org 2005-06-27 19:05:20.000000000 +0200 --- src/files.c 2005-06-27 19:05:20.000000000 +0200 *************** *** 999,1005 **** #if defined(UNIX) && defined(QT_GRAPHICS) int myuid=getuid(); struct dirent **namelist; ! int n = scandir("save", &namelist, 0, alphasort);; if ( n > 0 ) { int i,j=0; char** result = (char**)alloc((n+1)*sizeof(char*)); /* at most */ --- 999,1005 ---- #if defined(UNIX) && defined(QT_GRAPHICS) int myuid=getuid(); struct dirent **namelist; ! int n = scandir(fqname("save", SAVEPREFIX, 0), &namelist, 0, alphasort);; if ( n > 0 ) { int i,j=0; char** result = (char**)alloc((n+1)*sizeof(char*)); /* at most */ -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (300, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.24.20080529 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages nethack-qt depends on: ii libc6 2.7-10 GNU C Library: Shared libraries ii libgcc1 1:4.3.1-2 GCC support library ii libncurses5 5.6+20080308-1 Shared libraries for terminal hand ii libqt3-mt 3:3.3.8b-5 Qt GUI Library (Threaded runtime v ii libstdc++6 4.3.1-2 The GNU Standard C++ Library v3 ii nethack-common 3.4.3-10.5 Common files for Nethack dungeon c nethack-qt recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]