/apps/twnlua: ctx uploading

This commit is contained in:
veclavtalica
2025-01-14 01:35:54 +03:00
parent e984e95fa8
commit b037d7a0b9
2 changed files with 28 additions and 5 deletions

View File

@ -14,6 +14,7 @@
void bindgen_load_twn(lua_State *L);
void bindgen_unload_twn(lua_State *L);
void bindgen_build_context(lua_State *L);
void bindgen_upload_context(lua_State *L);
/* require will go through physicsfs exclusively so that scripts can be in the data dir */
@ -170,6 +171,9 @@ void game_tick(void) {
log_critical("%s", lua_tostring(state->L, -1));
lua_pop(state->L, 1);
}
lua_getglobal(state->L, "ctx");
bindgen_upload_context(state->L);
}