/apps/twnlua: ctx uploading
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user