[Scummvm-cvs-logs] SF.net SVN: scummvm: [24795] scummvm/trunk/engines/gob/gob.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Mon Nov 27 21:56:41 CET 2006


Revision: 24795
          http://svn.sourceforge.net/scummvm/?rev=24795&view=rev
Author:   drmccoy
Date:     2006-11-27 12:56:41 -0800 (Mon, 27 Nov 2006)

Log Message:
-----------
Removed the "#ifdef SCUMM_BIG_ENDIAN"s

Modified Paths:
--------------
    scummvm/trunk/engines/gob/gob.cpp

Modified: scummvm/trunk/engines/gob/gob.cpp
===================================================================
--- scummvm/trunk/engines/gob/gob.cpp	2006-11-27 14:19:30 UTC (rev 24794)
+++ scummvm/trunk/engines/gob/gob.cpp	2006-11-27 20:56:41 UTC (rev 24795)
@@ -447,12 +447,9 @@
 
 #ifndef GOB_ORIGSAVES
 
-uint32 written;
-
-#ifdef SCUMM_BIG_ENDIAN
-
 	int i;
 	char tmp[4];
+	uint32 written;
 
 	written = 0;
 	for (i = 0; i < size; i++, varBuf++) {
@@ -471,17 +468,10 @@
 		i += sizeBuf[i];
 	}
 
-#else // SCUMM_BIG_ENDIAN
-
-	written = out.write(varBuf, size);
-
-#endif // SCUMM_BIG_ENDIAN
-
 	out.write(sizeBuf, size);
 
 	return written;
 
-
 #else // GOB_ORIGSAVES
 
 	return out.write(varBuf, size);
@@ -638,6 +628,7 @@
 	uint32 read;
 	char *vars;
 	char *sizes;
+	int i;
 
 	vars = new char[size];
 	sizes = new char[size];
@@ -650,10 +641,6 @@
 		return 0;
 	}
 
-#ifdef SCUMM_BIG_ENDIAN
-
-	int i;
-
 	for (i = 0; i < size; i++) {
 		if (sizes[i] == 3)
 			*((uint32 *) (vars + i)) = READ_LE_UINT32(vars + i);
@@ -666,8 +653,6 @@
 		i += sizes[i];
 	}
 
-#endif // SCUMM_BIG_ENDIAN
-
 	memcpy(varBuf, vars, size);
 	memcpy(sizeBuf, sizes, size);
 	delete[] vars;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list