aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2006-11-27 20:56:41 +0000
committerSven Hesse2006-11-27 20:56:41 +0000
commit1e27dd5694bf5f853eeccbbdb2718773c70e0ec8 (patch)
tree29739d09f11ab3b19e934a36707d021d3a93b1ba /engines
parent9afb08341c89d20f54de4b6c9efec69ab60fc79d (diff)
downloadscummvm-rg350-1e27dd5694bf5f853eeccbbdb2718773c70e0ec8.tar.gz
scummvm-rg350-1e27dd5694bf5f853eeccbbdb2718773c70e0ec8.tar.bz2
scummvm-rg350-1e27dd5694bf5f853eeccbbdb2718773c70e0ec8.zip
Removed the "#ifdef SCUMM_BIG_ENDIAN"s
svn-id: r24795
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/gob.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp
index af08dc7cbd..64f9cbfaff 100644
--- a/engines/gob/gob.cpp
+++ b/engines/gob/gob.cpp
@@ -447,12 +447,9 @@ uint32 GobEngine::writeDataEndian(Common::OutSaveFile &out, char *varBuf, byte *
#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 @@ uint32 written;
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 GobEngine::readDataEndian(Common::InSaveFile &in, char *varBuf, byte *siz
uint32 read;
char *vars;
char *sizes;
+ int i;
vars = new char[size];
sizes = new char[size];
@@ -650,10 +641,6 @@ uint32 GobEngine::readDataEndian(Common::InSaveFile &in, char *varBuf, byte *siz
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 @@ uint32 GobEngine::readDataEndian(Common::InSaveFile &in, char *varBuf, byte *siz
i += sizes[i];
}
-#endif // SCUMM_BIG_ENDIAN
-
memcpy(varBuf, vars, size);
memcpy(sizeBuf, sizes, size);
delete[] vars;