aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/script.h
diff options
context:
space:
mode:
authorDenis Kasak2009-08-06 07:40:14 +0000
committerDenis Kasak2009-08-06 07:40:14 +0000
commit907a35c9297044b87f4e0c5c586873f669cee7da (patch)
treeab2046da0ebe9d4d934b13e23189facaee2c5228 /engines/draci/script.h
parent3ce16763c7d0f5ef22385dc482cc2c2e184b8f7c (diff)
downloadscummvm-rg350-907a35c9297044b87f4e0c5c586873f669cee7da.tar.gz
scummvm-rg350-907a35c9297044b87f4e0c5c586873f669cee7da.tar.bz2
scummvm-rg350-907a35c9297044b87f4e0c5c586873f669cee7da.zip
Added ability to end the currently executing GPL program before it finishes via Script::endCurrentProgram().
svn-id: r43086
Diffstat (limited to 'engines/draci/script.h')
-rw-r--r--engines/draci/script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/draci/script.h b/engines/draci/script.h
index 9e3345cd0b..78e813da40 100644
--- a/engines/draci/script.h
+++ b/engines/draci/script.h
@@ -89,10 +89,12 @@ public:
Script(DraciEngine *vm) : _vm(vm), _jump(0) { setupCommandList(); };
int run(GPL2Program program, uint16 offset);
+ void endCurrentProgram();
private:
int _jump;
+ bool _endProgram;
/** List of all GPL commands. Initialised in the constructor. */
const GPL2Command *_commandList;