r6262 - in packages/trunk/gravitation/debian: . patches
Paul Wise
pabs at alioth.debian.org
Sat Mar 22 07:38:16 UTC 2008
Author: pabs
Date: 2008-03-22 07:38:16 +0000 (Sat, 22 Mar 2008)
New Revision: 6262
Added:
packages/trunk/gravitation/debian/patches/
packages/trunk/gravitation/debian/patches/abs_path.patch
packages/trunk/gravitation/debian/patches/series
Modified:
packages/trunk/gravitation/debian/TODO
Log:
patch the code to use absolute paths to the installed data
Modified: packages/trunk/gravitation/debian/TODO
===================================================================
--- packages/trunk/gravitation/debian/TODO 2008-03-22 07:36:51 UTC (rev 6261)
+++ packages/trunk/gravitation/debian/TODO 2008-03-22 07:38:16 UTC (rev 6262)
@@ -1,4 +1,3 @@
Write package description
Write manual page
-Patch it to use absolute paths to the configs and images
Patch it to use ~/.gravitation
Added: packages/trunk/gravitation/debian/patches/abs_path.patch
===================================================================
--- packages/trunk/gravitation/debian/patches/abs_path.patch (rev 0)
+++ packages/trunk/gravitation/debian/patches/abs_path.patch 2008-03-22 07:38:16 UTC (rev 6262)
@@ -0,0 +1,25 @@
+abs_path.patch
+Paul Wise <pabs at debian.org>
+Use absolute paths to the installed data files.
+--- game5/gameSource/common.cpp.orig
++++ game5/gameSource/common.cpp
+@@ -10,7 +10,7 @@
+
+
+ Image *readTGA( char *inFileName ) {
+- return readTGA( "graphics", inFileName );
++ return readTGA( DATADIR"graphics", inFileName );
+ }
+
+
+--- game5/gameSource/musicPlayer.cpp.orig
++++ game5/gameSource/musicPlayer.cpp
+@@ -393,7 +393,7 @@
+
+ void loadMusicImage( char *inTGAFileName ) {
+
+- musicImage = readTGA( "music", inTGAFileName );
++ musicImage = readTGA( DATADIR"music", inTGAFileName );
+
+ w = musicImage->getWidth();
+ h = musicImage->getHeight();
Added: packages/trunk/gravitation/debian/patches/series
===================================================================
--- packages/trunk/gravitation/debian/patches/series (rev 0)
+++ packages/trunk/gravitation/debian/patches/series 2008-03-22 07:38:16 UTC (rev 6262)
@@ -0,0 +1 @@
+abs_path.patch -p0
More information about the Pkg-games-commits
mailing list