r3383 - packages/trunk/hex-a-hop/debian/patches

Miriam Ruiz baby-guest at alioth.debian.org
Thu Jul 12 18:40:25 UTC 2007


Author: baby-guest
Date: 2007-07-12 18:40:25 +0000 (Thu, 12 Jul 2007)
New Revision: 3383

Modified:
   packages/trunk/hex-a-hop/debian/patches/proper_directories.patch
Log:
Improve the patch a bit (making it cuter)



Modified: packages/trunk/hex-a-hop/debian/patches/proper_directories.patch
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/proper_directories.patch	2007-07-12 18:18:48 UTC (rev 3382)
+++ packages/trunk/hex-a-hop/debian/patches/proper_directories.patch	2007-07-12 18:40:25 UTC (rev 3383)
@@ -26,7 +26,7 @@
  void RenderTile(bool reflect, int t, int x, int y, int cliplift=-1);
  
  int keyState[SDLK_LAST] = {0};
-@@ -76,11 +87,35 @@
+@@ -76,11 +87,39 @@
  //	printf("file_open( \"%s\", \"%s\" )\n", file, flags );
  	extern String base_path;
  	static String filename; // static to reduce memory alloc/free calls.
@@ -57,10 +57,14 @@
  //	printf("   -> \"%s\"\n", filename );
 -	
 +
-+	printf("%s%s file \"%s\" (\"%s\")\n",
++	printf("%s%s file \"%s\"",
 +		strchr(flags, 'r') ? "Reading" : "Writing",
 +		strchr(flags, 'b') ? " binary" : "",
-+		(const char *)file, (const char *)filename );
++		(const char *)file );
++	if (strcmp((const char *)file,(const char *)filename) == 0)
++		printf("\n");
++	else
++		printf(" (\"%s\")\n", (const char *)filename);
 +
  	filename.fix_backslashes();
  	FILE* f = fopen( filename, flags );




More information about the Pkg-games-commits mailing list