From: kaeza Date: Sat, 21 Feb 2015 17:04:47 +0000 (+0100) Subject: Add mod.conf file support This new file only permits to specify a mod name for now X-Git-Tag: 0.4.13~572 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c5defe7a11f58048acfa4568ea784f31d9ffa276;p=oweals%2Fminetest.git Add mod.conf file support This new file only permits to specify a mod name for now --- 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();