SCI: Got rid of g_EngineState

svn-id: r41359
This commit is contained in:
Max Horn 2009-06-07 23:04:34 +00:00
parent 77bcc94f80
commit 0dcb1fa84f
3 changed files with 190 additions and 195 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1945,12 +1945,9 @@ static void _init_stack_base_with_selector(EngineState *s, Selector selector) {
s->stack_base[1] = NULL_REG;
}
EngineState *g_EngineState = 0;
static EngineState *_game_run(EngineState *&s, int restoring) {
EngineState *successor = NULL;
int game_is_finished = 0;
g_EngineState = s;
do {
s->_executionStackPosChanged = false;
run_vm(s, (successor || restoring) ? 1 : 0);
@ -1978,7 +1975,6 @@ static EngineState *_game_run(EngineState *&s, int restoring) {
script_free_vm_memory(s);
delete s;
s = successor;
g_EngineState = s;
if (script_abort_flag == 2) {
sciprintf("Restarting with replay()\n");

View File

@ -133,6 +133,7 @@ enum SciGameFlags {
};
class SciEngine : public Engine {
friend class Console;
public:
SciEngine(OSystem *syst, const SciGameDescription *desc);
~SciEngine();