mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +02:00
Fix regression main_menu_script setting not working any longer
This commit is contained in:
parent
7b3602bab3
commit
9ffa88b558
@ -23,7 +23,12 @@ dofile(commonpath.."misc_helpers.lua")
|
|||||||
if INIT == "game" then
|
if INIT == "game" then
|
||||||
dofile(gamepath.."init.lua")
|
dofile(gamepath.."init.lua")
|
||||||
elseif INIT == "mainmenu" then
|
elseif INIT == "mainmenu" then
|
||||||
dofile(core.get_mainmenu_path()..DIR_DELIM.."init.lua")
|
local mainmenuscript = core.setting_get("main_menu_script")
|
||||||
|
if mainmenuscript ~= nil and mainmenuscript ~= "" then
|
||||||
|
dofile(mainmenuscript)
|
||||||
|
else
|
||||||
|
dofile(core.get_mainmenu_path()..DIR_DELIM.."init.lua")
|
||||||
|
end
|
||||||
elseif INIT == "async" then
|
elseif INIT == "async" then
|
||||||
dofile(asyncpath.."init.lua")
|
dofile(asyncpath.."init.lua")
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user