Code editor WIP

This commit is contained in:
2021-12-15 19:24:56 +01:00
parent 11bb1b5283
commit 9b1573be9d
4 changed files with 153 additions and 7 deletions

View File

@@ -420,7 +420,6 @@ void lua_init(const char* filename, const bool start_playing) {
debug("BOOT ERROR:", false);
debug(lua_tostring(L, -1));
lua_pop(L,1);
setmode(0);
file_loaded = false;
}
} else {
@@ -428,7 +427,6 @@ void lua_init(const char* filename, const bool start_playing) {
debug("ERROR LOADING GAME:",false);
debug(lua_tostring(L, -1));
lua_pop(L,1);
setmode(0);
file_loaded = false;
}
}
@@ -618,7 +616,6 @@ void lua_init(const char* filename, const bool start_playing) {
debug("RUNTIME ERROR:", false);
debug(lua_tostring(L, -1));
lua_pop(L,1);
setmode(0);
return;
}
@@ -663,7 +660,6 @@ void lua_call_init() {
debug("RUNTIME ERROR:",false);
debug(lua_tostring(L, -1));
lua_pop(L,1);
setmode(0);
lua_state = STATE_STOPPED;
}
}
@@ -676,7 +672,6 @@ void lua_call_update() {
debug("RUNTIME ERROR:",false);
debug(lua_tostring(L, -1));
lua_pop(L,1);
setmode(0);
lua_state = STATE_STOPPED;
}
} else {