Skip to content

Commit 1f3402e

Browse files
committedSep 9, 2013
Prevent ModMgr from deleting backend setting in world.mt
1 parent 49a75b1 commit 1f3402e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎builtin/modmgr.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ function modmgr.get_worldconfig(worldpath)
513513

514514
if key == "gameid" then
515515
worldconfig.id = parts[2]:trim()
516+
elseif key == "backend" then
517+
worldconfig.backend = parts[2]:trim()
516518
else
517519
local key = parts[1]:trim():sub(10)
518520
if parts[2]:trim() == "true" then
@@ -729,7 +731,7 @@ function modmgr.handle_configure_world_buttons(fields)
729731
local worldfile = io.open(filename,"w")
730732

731733
if worldfile then
732-
worldfile:write("gameid = " .. modmgr.worldconfig.id .. "\n")
734+
worldfile:write("gameid = " .. modmgr.worldconfig.id .. "\nbackend = " .. modmgr.worldconfig.backend .. "\n")
733735

734736
local rawlist = filterlist.get_raw_list(modmgr.modlist)
735737

0 commit comments

Comments
 (0)
Please sign in to comment.