int guiLuaApi::l_get_scriptdir(lua_State *L) { GUIEngine* engine = get_engine(L); assert(engine != 0); lua_pushstring(L,engine->getScriptDir().c_str()); return 1; }
int ModApiMainMenu::l_get_scriptdir(lua_State *L) { GUIEngine* engine = getGuiEngine(L); assert(engine != 0); lua_pushstring(L,engine->getScriptDir().c_str()); return 1; }
int ModApiMainMenu::l_get_mainmenu_path(lua_State *L) { GUIEngine* engine = getGuiEngine(L); sanity_check(engine != NULL); lua_pushstring(L,engine->getScriptDir().c_str()); return 1; }