diff options
| author | Jamieson Christian | 2003-05-17 19:03:25 +0000 | 
|---|---|---|
| committer | Jamieson Christian | 2003-05-17 19:03:25 +0000 | 
| commit | fcc11d19fa22a8c559d53c3d1e5b9b63b7be975c (patch) | |
| tree | 62cf4157667f8f23f25cef0f8a294dd30d2f219f /scumm/debugger.cpp | |
| parent | 3576b8e16882f0e8f033679bf293bc3b3a3ab618 (diff) | |
| download | scummvm-rg350-fcc11d19fa22a8c559d53c3d1e5b9b63b7be975c.tar.gz scummvm-rg350-fcc11d19fa22a8c559d53c3d1e5b9b63b7be975c.tar.bz2 scummvm-rg350-fcc11d19fa22a8c559d53c3d1e5b9b63b7be975c.zip | |
Added imuse_multimidi to debugger
svn-id: r7614
Diffstat (limited to 'scumm/debugger.cpp')
| -rw-r--r-- | scumm/debugger.cpp | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index d506f25e0d..8b15e800c6 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -22,6 +22,7 @@  #include "scumm.h"  #include "sound.h"  #include "actor.h" +#include "imuse.h"  #include "debugger.h"  #include "common/util.h"  #include "common/file.h" @@ -98,6 +99,8 @@ void ScummDebugger::attach(Scumm *s, char *entry) {  		DCmd_Register("show", &ScummDebugger::Cmd_Show);  		DCmd_Register("hide", &ScummDebugger::Cmd_Hide); + +		DCmd_Register("imuse_multimidi", &ScummDebugger::Cmd_ImuseMultiMidi);  	}  } @@ -354,6 +357,16 @@ bool ScummDebugger::Cmd_Restart(int argc, const char **argv) {  	return false;  } +bool ScummDebugger::Cmd_ImuseMultiMidi (int argc, const char **argv) { +	if (argc > 1) { +		_s->_imuse->property (IMuse::PROP_MULTI_MIDI, !strcmp (argv[1], "1") || !strcmp (argv[1], "on") || !strcmp (argv[1], "true")); +		return false; +	} else { +		Debug_Printf("Use 'imuse_multimidi <on/true/1 | off/false/0>' to switch\n"); +		return true; +	} +} +  bool ScummDebugger::Cmd_Room(int argc, const char **argv) {  	if (argc > 1) {  		int room = atoi(argv[1]); | 
