Skip to content
Permalink
Browse files

Add mod.conf file support This new file only permits to specify a mod…

… name for now
  • Loading branch information
kaeza authored and nerzhul committed Feb 21, 2015
1 parent a0affa4 commit c5defe7a11f58048acfa4568ea784f31d9ffa276
Showing with 5 additions and 0 deletions.
  1. +5 −0 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();

0 comments on commit c5defe7

Please sign in to comment.
You can’t perform that action at this time.