aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/basenodes/textures/dirt_with_grass
diff options
context:
space:
mode:
authorWuzzy <Wuzzy@disroot.org>2022-05-17 18:06:15 +0000
committerGitHub <noreply@github.com>2022-05-17 20:06:15 +0200
commiteabf05758e3ba5f6f4bb1b8d1d1f02179b84e410 (patch)
treea39771dd033848f42d507827c8a2a16b681855e9 /games/devtest/mods/basenodes/textures/dirt_with_grass
parent8756b7a735084c6a80f5ab031fa1d889528d6fde (diff)
downloadminetest-eabf05758e3ba5f6f4bb1b8d1d1f02179b84e410.tar.gz
minetest-eabf05758e3ba5f6f4bb1b8d1d1f02179b84e410.tar.bz2
minetest-eabf05758e3ba5f6f4bb1b8d1d1f02179b84e410.zip
DevTest: Fix broken PNG textures
Diffstat (limited to 'games/devtest/mods/basenodes/textures/dirt_with_grass')
0 files changed, 0 insertions, 0 deletions
an> #include "cpp_api/s_internal.h" #include "common/c_converter.h" void ScriptApiMainMenu::setMainMenuData(MainMenuDataForScript *data) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "gamedata"); int gamedata_idx = lua_gettop(L); lua_pushstring(L, "errormessage"); if (!data->errormessage.empty()) { lua_pushstring(L, data->errormessage.c_str()); } else { lua_pushnil(L); } lua_settable(L, gamedata_idx); setboolfield(L, gamedata_idx, "reconnect_requested", data->reconnect_requested); lua_pop(L, 1); } void ScriptApiMainMenu::handleMainMenuEvent(std::string text) { SCRIPTAPI_PRECHECKHEADER int error_handler = PUSH_ERROR_HANDLER(L); // Get handler function lua_getglobal(L, "core"); lua_getfield(L, -1, "event_handler"); lua_remove(L, -2); // Remove core if (lua_isnil(L, -1)) { lua_pop(L, 1); // Pop event_handler return; } luaL_checktype(L, -1, LUA_TFUNCTION); // Call it lua_pushstring(L, text.c_str()); PCALL_RES(lua_pcall(L, 1, 0, error_handler)); lua_pop(L, 1); // Pop error handler } void ScriptApiMainMenu::handleMainMenuButtons(const StringMap &fields) { SCRIPTAPI_PRECHECKHEADER int error_handler = PUSH_ERROR_HANDLER(L);