Skip to content

Commit

Permalink
Add mod.conf file support This new file only permits to specify a mod…
Browse files Browse the repository at this point in the history
… name for now
  • Loading branch information
kaeza authored and nerzhul committed Feb 21, 2015
1 parent a0affa4 commit c5defe7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mods.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit c5defe7

Please sign in to comment.