Skip to content
Permalink
Browse files

Fix regression main_menu_script setting not working any longer

  • Loading branch information...
sapier sapier
sapier authored and sapier committed Jun 14, 2014
1 parent 7b3602b commit 9ffa88b558498a139488679ef2ed8767c8540471
Showing with 6 additions and 1 deletion.
  1. +6 −1 builtin/init.lua
@@ -23,7 +23,12 @@ dofile(commonpath.."misc_helpers.lua")
if INIT == "game" then
dofile(gamepath.."init.lua")
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
dofile(asyncpath.."init.lua")
else

0 comments on commit 9ffa88b

Please sign in to comment.
You can’t perform that action at this time.