[Scummvm-cvs-logs] CVS: scummvm/scumm script_v100he.cpp,2.10,2.11
Travis Howell
kirben at users.sourceforge.net
Sat Oct 9 22:24:44 CEST 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.300,2.301 script_v100he.cpp,2.9,2.10 script_v72he.cpp,2.162,2.163
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.301,2.302 script_v100he.cpp,2.11,2.12 script_v6he.cpp,2.132,2.133 script_v72he.cpp,2.163,2.164 script_v7he.cpp,2.104,2.105 script_v80he.cpp,2.55,2.56 script_v90he.cpp,2.90,2.91
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22248/scumm
Modified Files:
script_v100he.cpp
Log Message:
More HE100 corrections.
Index: script_v100he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v100he.cpp,v
retrieving revision 2.10
retrieving revision 2.11
diff -u -d -r2.10 -r2.11
--- script_v100he.cpp 10 Oct 2004 04:02:37 -0000 2.10
+++ script_v100he.cpp 10 Oct 2004 05:16:12 -0000 2.11
@@ -886,8 +886,7 @@
}
void ScummEngine_v100he::o100_resourceRoutines() {
- // Incomplete
- int obj, room;
+ int obj, objidx, room;
byte subOp = fetchScriptByte();
@@ -915,6 +914,8 @@
loadFlObject(obj, room);
} else if (_heResType == rtCharset) {
loadCharset(_heResId);
+ } else {
+ ensureResourceLoaded(_heResType, _heResId);
}
break;
case 62:
@@ -930,7 +931,18 @@
_heResId = pop();
break;
case 128:
- // lock?
+ break;
+ case 132:
+ if (_heResType == rtScript && _heResId >= _numGlobalScripts)
+ break;
+
+ if (_heResType == rtFlObject) {
+ objidx = getObjectIndex(_heResId);
+ //assert(objidx != -1);
+ //lock(_heResType, objidx);
+ } else {
+ lock(_heResType, _heResId);
+ }
break;
case 133:
if (_heResType == rtCharset)
@@ -938,8 +950,27 @@
else
nukeResource(_heResType, _heResId);
break;
+ case 134:
+ case 135:
+ // Heap related
+ break;
+ case 136:
+ debug(5,"stub queueload (%d) resource %d", _heResType, _heResId);
+ break;
+ case 137:
+ if (_heResType == rtScript && _heResId >= _numGlobalScripts)
+ break;
+
+ if (_heResType == rtFlObject) {
+ objidx = getObjectIndex(_heResId);
+ //assert(objidx != -1);
+ //unlock(_heResType, objidx);
+ } else {
+ unlock(_heResType, _heResId);
+ }
+ break;
default:
- debug(1,"o100_resourceRoutines: default case %d", subOp);
+ error("o100_resourceRoutines: default case %d", subOp);
}
}
@@ -1410,7 +1441,6 @@
for (i = 0; i < 16; i++)
_charsetColorMap[i] = _charsetData[_string[1]._default.charset][i] = (unsigned char)args[i];
break;
-
case 0x80:
a = pop();
loadWizCursor(a, rtInventory, 0);
@@ -1430,24 +1460,25 @@
case 0x87: // SO_CURSOR_OFF Turn cursor off
_cursor.state = 0;
break;
- case 0x88: // SO_USERPUT_ON
- _userPut = 1;
- break;
- case 0x89: // SO_USERPUT_OFF
- _userPut = 0;
- break;
- case 0x8A: // SO_CURSOR_SOFT_ON Turn soft cursor on
+ case 0x88: // SO_CURSOR_SOFT_ON Turn soft cursor on
_cursor.state++;
if (_cursor.state > 1)
error("o100_cursorCommand: Cursor state greater than 1 in script");
break;
- case 0x8B: // SO_CURSOR_SOFT_OFF Turn soft cursor off
+
+ case 0x89: // SO_CURSOR_SOFT_OFF Turn soft cursor off
_cursor.state--;
break;
- case 0x8C: // SO_USERPUT_SOFT_ON
+ case 0x8B: // SO_USERPUT_ON
+ _userPut = 1;
+ break;
+ case 0x8C: // SO_USERPUT_OFF
+ _userPut = 0;
+ break;
+ case 0x8D: // SO_USERPUT_SOFT_ON
_userPut++;
break;
- case 0x8D: // SO_USERPUT_SOFT_OFF
+ case 0x8E: // SO_USERPUT_SOFT_OFF
_userPut--;
break;
default:
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.300,2.301 script_v100he.cpp,2.9,2.10 script_v72he.cpp,2.162,2.163
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.301,2.302 script_v100he.cpp,2.11,2.12 script_v6he.cpp,2.132,2.133 script_v72he.cpp,2.163,2.164 script_v7he.cpp,2.104,2.105 script_v80he.cpp,2.55,2.56 script_v90he.cpp,2.90,2.91
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list