[Scummvm-cvs-logs] CVS: scummvm/scumm saveload.cpp,1.45,1.46
James Brown
ender at users.sourceforge.net
Wed Jan 15 05:36:05 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv13671/scumm
Modified Files:
saveload.cpp
Log Message:
Comments regarding use of sle16 for 32bit variables.. :P
Index: saveload.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/saveload.cpp,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- saveload.cpp 14 Jan 2003 18:20:56 -0000 1.45
+++ saveload.cpp 15 Jan 2003 13:35:18 -0000 1.46
@@ -358,6 +358,8 @@
MKARRAY(Scumm, _localScriptList[0], sleUint32, NUM_LOCALSCRIPT, VER_V8),
// vm.localvar grew from 25 to 40 entries
+ // FIXME: ComI stores 32-bit variables.. so.. er.. shouldn't this be a sleInt32 if we
+ // don't want games to hidiously behave oddly?
MKARRAY_OLD(Scumm, vm.localvar[0][0], sleUint16, 25 * 17, VER_V8, VER_V8),
MKARRAY(Scumm, vm.localvar[0][0], sleUint16, NUM_SCRIPT_SLOT * 17, VER_V9),
@@ -623,6 +625,8 @@
var120Backup = _vars[120];
var98Backup = _vars[98];
+ // FIXME: ComI stores 32-bit variables.. so.. er.. shouldn't this be a sleInt32 if we
+ // don't want games to hidiously behave oddly?
s->saveLoadArrayOf(_vars, _numVariables, sizeof(_vars[0]), sleInt16);
if (_gameId == GID_TENTACLE) // Maybe misplaced, but that's the main idea
More information about the Scummvm-git-logs
mailing list