diff --git a/apps/twnlua/game.c b/apps/twnlua/game.c index ace926d..c579cd8 100644 --- a/apps/twnlua/game.c +++ b/apps/twnlua/game.c @@ -7,8 +7,6 @@ #include #include -#include - /* generated by bindgen.py */ void bindgen_load_twn(lua_State *L); @@ -18,10 +16,11 @@ void bindgen_upload_context(lua_State *L); /* require will go through physicsfs exclusively so that scripts can be in the data dir */ +/* TODO: allow for bytecode files */ static int physfs_loader(lua_State *L) { const char *name = luaL_checkstring(L, 1); char *final_path = NULL; - SDL_asprintf(&final_path, "%s.lua", name); + SDL_asprintf(&final_path, "/scripts/%s.lua", name); if (!file_exists(final_path)) { char *error_message = NULL;