pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/sarien fix game saving/restoring (the usual "mkd...
details: https://anonhg.NetBSD.org/pkgsrc/rev/95fc975b4287
branches: trunk
changeset: 460225:95fc975b4287
user: drochner <drochner%pkgsrc.org@localhost>
date: Mon Aug 25 08:57:54 2003 +0000
description:
fix game saving/restoring (the usual "mkdir xxx/" nonsense)
diffstat:
games/sarien/distinfo | 3 ++-
games/sarien/patches/patch-ac | 29 +++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletions(-)
diffs (45 lines):
diff -r 98a144ad5f95 -r 95fc975b4287 games/sarien/distinfo
--- a/games/sarien/distinfo Mon Aug 25 06:06:10 2003 +0000
+++ b/games/sarien/distinfo Mon Aug 25 08:57:54 2003 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2003/08/19 18:41:46 drochner Exp $
+$NetBSD: distinfo,v 1.3 2003/08/25 08:57:54 drochner Exp $
SHA1 (sarien-0.7.0.tar.gz) = f1c3236ed554cbde479fbbfa52cbc95cb9759fde
Size (sarien-0.7.0.tar.gz) = 284109 bytes
SHA1 (patch-aa) = 437bf3108d437f265c97a813a1a1d512003f20b4
SHA1 (patch-ab) = 0cc8d119e26aca5530bb70342b884e7faa2ad3e9
+SHA1 (patch-ac) = 198ed26e5ad7ab49a7c30e731a3ad37432fda7e7
diff -r 98a144ad5f95 -r 95fc975b4287 games/sarien/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/sarien/patches/patch-ac Mon Aug 25 08:57:54 2003 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-ac,v 1.1 2003/08/25 08:57:54 drochner Exp $
+
+--- src/core/savegame.c.orig 2003-08-24 18:15:58.000000000 +0200
++++ src/core/savegame.c 2003-08-24 18:18:07.000000000 +0200
+@@ -590,10 +590,10 @@
+
+ /* DATADIR conflicts with ObjIdl.h in win32 SDK,
+ renamed to DATA_DIR */
+- sprintf (path, "%s/" DATA_DIR "/", home);
++ sprintf (path, "%s/" DATA_DIR, home);
+
+ MKDIR (path, 0755);
+- sprintf (path, "%s/" DATA_DIR "/%s/", home, game.id);
++ sprintf (path, "%s/" DATA_DIR "/%s", home, game.id);
+ MKDIR (path, 0711);
+
+ sprintf (path, "%s/" DATA_DIR "/%s/%08d.sav",
+@@ -619,9 +619,9 @@
+ return err_BadFileOpen;
+ }
+
+- sprintf (path, "%s/" DATA_DIR "/", home);
++ sprintf (path, "%s/" DATA_DIR, home);
+ MKDIR (path, 0755);
+- sprintf (path, "%s/" DATA_DIR "/%s/", home, game.id);
++ sprintf (path, "%s/" DATA_DIR "/%s", home, game.id);
+ MKDIR (path, 0711);
+
+ sprintf (path, "%s/" DATA_DIR "/%s/%08d.sav",
Home |
Main Index |
Thread Index |
Old Index