diff options
| author | Travis Howell | 2008-09-06 01:02:45 +0000 | 
|---|---|---|
| committer | Travis Howell | 2008-09-06 01:02:45 +0000 | 
| commit | 52ec841cd421f048ae465d7042b10b7ae14573cd (patch) | |
| tree | ac09e614d9424603e633f17bdd5b49fc849b9995 /engines/scumm/he/script_v100he.cpp | |
| parent | a5a50e8ab944e250637e47ccdd1ed534901c9d6a (diff) | |
| download | scummvm-rg350-52ec841cd421f048ae465d7042b10b7ae14573cd.tar.gz scummvm-rg350-52ec841cd421f048ae465d7042b10b7ae14573cd.tar.bz2 scummvm-rg350-52ec841cd421f048ae465d7042b10b7ae14573cd.zip | |
Add debugInput opcode for HE 100 games.
svn-id: r34375
Diffstat (limited to 'engines/scumm/he/script_v100he.cpp')
| -rw-r--r-- | engines/scumm/he/script_v100he.cpp | 27 | 
1 files changed, 26 insertions, 1 deletions
| diff --git a/engines/scumm/he/script_v100he.cpp b/engines/scumm/he/script_v100he.cpp index 60863cc987..5717d77640 100644 --- a/engines/scumm/he/script_v100he.cpp +++ b/engines/scumm/he/script_v100he.cpp @@ -29,6 +29,7 @@  #include "scumm/actor.h"  #include "scumm/charset.h" +#include "scumm/dialogs.h"  #include "scumm/he/animation_he.h"  #include "scumm/he/intern_he.h"  #include "scumm/object.h" @@ -256,7 +257,7 @@ void ScummEngine_v100he::setupOpcodes() {  		OPCODE(o90_cond),  		OPCODE(o90_cos),  		/* A8 */ -		OPCODE(o6_invalid), +		OPCODE(o100_debugInput),  		OPCODE(o80_getFileSize),  		OPCODE(o6_getActorFromXY),  		OPCODE(o72_findAllObjects), @@ -2345,6 +2346,30 @@ void ScummEngine_v100he::o100_writeFile() {  	}  } +void ScummEngine_v100he::o100_debugInput() { +	byte subOp = fetchScriptByte(); + +	switch (subOp) { +	case 0: +		copyScriptString(_debugInputBuffer, sizeof(_debugInputBuffer)); +		break; +	case 26: +		pop(); +		break; +	case 27: +		copyScriptString(_debugInputBuffer, sizeof(_debugInputBuffer)); +		break; +	case 80: +		copyScriptString(_debugInputBuffer, sizeof(_debugInputBuffer)); +		break; +	case 92: +		debugInput(_debugInputBuffer); +		break; +	default: +		error("o100_debugInput: default case %d", subOp); +	} +} +  void ScummEngine_v100he::o100_isResourceLoaded() {  	// Reports percentage of resource loaded by queue  	int type; | 
