diff options
author | kaeza <kaeza@users.sf.net> | 2015-02-21 18:04:47 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-21 18:18:06 +0100 |
commit | c5defe7a11f58048acfa4568ea784f31d9ffa276 (patch) | |
tree | be250eae61aae39bfed06f4f74fdde6ed65063be | |
parent | a0affa496dcbcfff9881a79db83bf94916ca242d (diff) | |
download | minetest-c5defe7a11f58048acfa4568ea784f31d9ffa276.tar.gz minetest-c5defe7a11f58048acfa4568ea784f31d9ffa276.tar.bz2 minetest-c5defe7a11f58048acfa4568ea784f31d9ffa276.zip |
Add mod.conf file support This new file only permits to specify a mod name for now
-rw-r--r-- | src/mods.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mods.cpp b/src/mods.cpp index 6126de7a1..cb5a6b9fd 100644 --- a/src/mods.cpp +++ b/src/mods.cpp @@ -47,6 +47,11 @@ static bool parseDependsLine(std::istream &is, void parseModContents(ModSpec &spec) { // NOTE: this function works in mutual recursion with getModsInPath + Settings info; + info.readConfigFile((spec.path+DIR_DELIM+"mod.conf").c_str()); + + if (info.exists("name")) + spec.name = info.get("name"); spec.depends.clear(); spec.optdepends.clear(); |