mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 14:57:59 +03:00
deal with script execution from within a script (Fixes #2964)
(cherry picked from commit 8eb6d337d5
)
This commit is contained in:
parent
71077fda6a
commit
aa31704d5d
2 changed files with 55 additions and 11 deletions
|
@ -2,6 +2,7 @@
|
|||
#define INTERPRETER_INTERPRETER_H_INCLUDED
|
||||
|
||||
#include <map>
|
||||
#include <stack>
|
||||
|
||||
#include "runtime.hpp"
|
||||
#include "types.hpp"
|
||||
|
@ -14,6 +15,8 @@ namespace Interpreter
|
|||
|
||||
class Interpreter
|
||||
{
|
||||
std::stack<Runtime> mCallstack;
|
||||
bool mRunning;
|
||||
Runtime mRuntime;
|
||||
std::map<int, Opcode1 *> mSegment0;
|
||||
std::map<int, Opcode2 *> mSegment1;
|
||||
|
@ -32,6 +35,10 @@ namespace Interpreter
|
|||
|
||||
void abortUnknownSegment (Type_Code code);
|
||||
|
||||
void begin();
|
||||
|
||||
void end();
|
||||
|
||||
public:
|
||||
|
||||
Interpreter();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue