aboutsummaryrefslogtreecommitdiff
path: root/src/mods.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mods.h')
-rw-r--r--src/mods.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mods.h b/src/mods.h
index 50ada328e..c16df30e6 100644
--- a/src/mods.h
+++ b/src/mods.h
@@ -45,16 +45,22 @@ struct ModSpec
bool is_modpack = false;
// if modpack:
std::map<std::string,ModSpec> modpack_content;
- ModSpec(const std::string &name_="", const std::string &path_=""):
+ ModSpec(const std::string &name_ = "", const std::string &path_ = ""):
name(name_),
path(path_)
{}
+ ModSpec(const std::string &name_, const std::string &path_, bool part_of_modpack_):
+ name(name_),
+ path(path_),
+ part_of_modpack(part_of_modpack_)
+ {}
};
// Retrieves depends, optdepends, is_modpack and modpack_content
void parseModContents(ModSpec &mod);
-std::map<std::string,ModSpec> getModsInPath(std::string path, bool part_of_modpack = false);
+std::map<std::string,ModSpec> getModsInPath(const std::string &path,
+ bool part_of_modpack = false);
// replaces modpack Modspecs with their content
std::vector<ModSpec> flattenMods(std::map<std::string,ModSpec> mods);