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

Jens Seidel jseidel-guest at alioth.debian.org
Sun Sep 9 18:04:09 UTC 2007


Author: jseidel-guest
Date: 2007-09-09 18:04:09 +0000 (Sun, 09 Sep 2007)
New Revision: 4141

Modified:
   packages/trunk/hex-a-hop/debian/patches/proper_directories.patch
Log:
Reduced debug output

Modified: packages/trunk/hex-a-hop/debian/patches/proper_directories.patch
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/proper_directories.patch	2007-09-09 17:42:43 UTC (rev 4140)
+++ packages/trunk/hex-a-hop/debian/patches/proper_directories.patch	2007-09-09 18:04:09 UTC (rev 4141)
@@ -1,8 +1,10 @@
 # Copyright (C) 2007  Miriam Ruiz <little_miry at yahoo.es>
 # Licensed under the GPL, see /usr/share/common-licenses/GPL
 
---- hex-a-hop-0.0.20070315.orig/hex_puzzzle.cpp
-+++ hex-a-hop-0.0.20070315/hex_puzzzle.cpp
+Index: hex-a-hop.svn/hex_puzzzle.cpp
+===================================================================
+--- hex-a-hop.svn.orig/hex_puzzzle.cpp	2007-09-09 20:00:50.000000000 +0200
++++ hex-a-hop.svn/hex_puzzzle.cpp	2007-09-09 20:04:28.000000000 +0200
 @@ -27,7 +27,13 @@
  
  //#define MAP_LOCKED_VISIBLE
@@ -29,7 +31,7 @@
  void RenderTile(bool reflect, int t, int x, int y, int cliplift=-1);
  
  int keyState[SDLK_LAST] = {0};
-@@ -76,11 +87,39 @@
+@@ -76,15 +87,34 @@
  //	printf("file_open( \"%s\", \"%s\" )\n", file, flags );
  	extern String base_path;
  	static String filename; // static to reduce memory alloc/free calls.
@@ -60,20 +62,16 @@
  //	printf("   -> \"%s\"\n", filename );
 -	
 +
-+	printf("%s%s file \"%s\"",
-+		strchr(flags, 'r') ? "Reading" : "Writing",
-+		strchr(flags, 'b') ? " binary" : "",
-+		(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 );
  
-@@ -4051,7 +4086,7 @@
+-	if (!f)
++	if (!f && strncmp(file, "save", 4) != 0)
+ 	{
+ 		printf("Warning: unable to open file \"%s\" for %s\n", (const char*)filename, strchr(flags, 'r') ? "reading" : "writing");
  	}
+@@ -4095,7 +4125,7 @@
+ 	}
  	void LoadGraphics()
  	{
 -		#define X(NAME,FILE,ALPHA) NAME = Load("graphics/" FILE BMP_SUFFIX, ALPHA);
@@ -81,8 +79,10 @@
  		#include "gfx_list.h"
  
  		static int first = 1;
---- hex-a-hop-0.0.20070315.orig/gfx.cpp
-+++ hex-a-hop-0.0.20070315/gfx.cpp
+Index: hex-a-hop.svn/gfx.cpp
+===================================================================
+--- hex-a-hop.svn.orig/gfx.cpp	2007-09-09 20:00:50.000000000 +0200
++++ hex-a-hop.svn/gfx.cpp	2007-09-09 20:03:30.000000000 +0200
 @@ -28,6 +28,10 @@
  	#undef USE_BBTABLET
  #endif
@@ -103,8 +103,10 @@
  	for (int i=strlen(base_path)-1; i>=0; i--)
  		if (base_path[i]=='/' || base_path[i]=='\\')
  		{
---- hex-a-hop-0.0.20070315.orig/Makefile
-+++ hex-a-hop-0.0.20070315/Makefile
+Index: hex-a-hop.svn/Makefile
+===================================================================
+--- hex-a-hop.svn.orig/Makefile	2007-09-09 20:00:47.000000000 +0200
++++ hex-a-hop.svn/Makefile	2007-09-09 20:03:30.000000000 +0200
 @@ -2,7 +2,8 @@
  NAME		= Hex-a-hop
  VERSION		= 1.0.0




More information about the Pkg-games-commits mailing list