Created
October 2, 2012 13:06
-
-
Save cornernote/3818956 to your computer and use it in GitHub Desktop.
Read Settings from minetest.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- custom settings go in minetest.conf like this: | |
my_setting = foobar | |
my_other_setting = 1 | |
-- read custom or existing settings at load time | |
local my_setting = minetest.setting_get("my_setting") or "barfoo" | |
local my_other_setting= minetest.setting_getbool("my_other_setting") or false | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment