Skip to content
Snippets Groups Projects
Commit 8835b136 authored by DarkGod's avatar DarkGod
Browse files

Fixed an issue where a huge number of disabled addons could make the game crash on start

parent 9aec2fd2
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -336,6 +336,7 @@ function _M:listBackgrounds(mod)
if fs.exists(dir.."/boot-screen/init.lua") then
load(dir, nil)
elseif short_name:find(".teaa$") or short_name:find(".teaac$") then
print("=====real", dir)
fs.mount(fs.getRealPath(dir), "/testload", false)
local mod
if fs.exists("/testload/boot-screen/init.lua") then
......
......@@ -77,7 +77,8 @@ bool draw_waiting(lua_State *L)
if (wait_draw_ref != LUA_NOREF)
{
lua_rawgeti(L, LUA_REGISTRYINDEX, wait_draw_ref);
lua_call(L, 0, 0);
if (lua_isfunction(L, -1)) lua_call(L, 0, 0);
else lua_pop(L, 1);
}
else draw_last_frame(L);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment