r9838 - packages/trunk/libtuxcap/debian/patches

Miriam Ruiz miriam at alioth.debian.org
Thu Jun 11 00:25:46 UTC 2009


Author: miriam
Date: 2009-06-11 00:25:42 +0000 (Thu, 11 Jun 2009)
New Revision: 9838

Modified:
   packages/trunk/libtuxcap/debian/patches/abs_dirs.patch
   packages/trunk/libtuxcap/debian/patches/series
Log:
Fixed patch so that particle images are obtained from the resources dir



Modified: packages/trunk/libtuxcap/debian/patches/abs_dirs.patch
===================================================================
--- packages/trunk/libtuxcap/debian/patches/abs_dirs.patch	2009-06-09 21:54:17 UTC (rev 9837)
+++ packages/trunk/libtuxcap/debian/patches/abs_dirs.patch	2009-06-11 00:25:42 UTC (rev 9838)
@@ -15,3 +15,15 @@
  	
  	std::string anId;
  	XMLParamMap::iterator anItr = theElement.mAttributes.find(_S("id"));
+--- libtuxcap-1.4.0.orig/tuxcap/hgeparticle/hgeparticle.cpp
++++ libtuxcap-1.4.0/tuxcap/hgeparticle/hgeparticle.cpp
+@@ -58,7 +58,8 @@
+     bInitOK = false;
+ 
+     // LOAD FROM FILE
+-    FILE *fp = fopen( filename, "rb" );
++    std::string fullfilename = Sexy::GetAppResourceFolder() + filename;
++    FILE *fp = fopen( fullfilename.c_str(), "rb" );
+     if( fp == NULL ) 
+         return ; 
+ 

Modified: packages/trunk/libtuxcap/debian/patches/series
===================================================================
--- packages/trunk/libtuxcap/debian/patches/series	2009-06-09 21:54:17 UTC (rev 9837)
+++ packages/trunk/libtuxcap/debian/patches/series	2009-06-11 00:25:42 UTC (rev 9838)
@@ -1,3 +1,3 @@
 cmakelists.patch
+no_fsck_32bit_colors.patch
 abs_dirs.patch
-no_fsck_32bit_colors.patch




More information about the Pkg-games-commits mailing list