mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
SCI: Got rid of g_EngineState
svn-id: r41359
This commit is contained in:
parent
77bcc94f80
commit
0dcb1fa84f
File diff suppressed because it is too large
Load Diff
@ -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");
|
||||
|
@ -133,6 +133,7 @@ enum SciGameFlags {
|
||||
};
|
||||
|
||||
class SciEngine : public Engine {
|
||||
friend class Console;
|
||||
public:
|
||||
SciEngine(OSystem *syst, const SciGameDescription *desc);
|
||||
~SciEngine();
|
||||
|
Loading…
Reference in New Issue
Block a user