Per-world config feature. Should be stored in worlds/<worldname>/mod_minetest_wadsprint_config.lua

master
aa6 2017-10-29 09:53:06 +03:00
parent 63401635e2
commit 9b69b6965c
3 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
0.5.3
0.6.0

View File

@ -24,8 +24,12 @@ minetest_wadsprint =
},
version = io.open(minetest.get_modpath(minetest.get_current_modname()).."/VERSION","r"):read("*all"),
savepath = minetest.get_worldpath().."/mod_minetest_wadsprint_saved_players_stats.dat",
worldconfig = minetest.get_worldpath().."/mod_minetest_wadsprint_config.lua",
}
dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua")
dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua") -- Load default config.
if file_exists(minetest_wadsprint.worldconfig) then -- Load world config (if present).
dofile(minetest_wadsprint.worldconfig)
end
dofile(minetest.get_modpath(minetest.get_current_modname()).."/init_hudbars.lua")
----------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------- api.stats() --

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

After

Width:  |  Height:  |  Size: 474 B