Include dependency graph for mods.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | ModSpec |
| class | ModStorage |
Macros | |
| #define | MODNAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyz0123456789_" |
Functions | |
| bool | parseModContents (ModSpec &mod) |
| Retrieves depends, optdepends, is_modpack and modpack_content. | |
| std::map< std::string, ModSpec > | getModsInPath (const std::string &path, const std::string &virtual_path, int modpack_depth=0) |
| Gets a list of all mods and modpacks in path. | |
| std::vector< ModSpec > | flattenMods (const std::map< std::string, ModSpec > &mods, bool discard_modpacks=true) |
| #define MODNAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyz0123456789_" |
Referenced by ModSpec::checkAndLog(), and parseDependsString().
| std::vector< ModSpec > flattenMods | ( | const std::map< std::string, ModSpec > & | mods, |
| bool | discard_modpacks = true ) |
References flattenMods(), ModSpec::is_modpack, and ModSpec::modpack_content.
Referenced by ModConfiguration::addModsFromConfig(), ModConfiguration::addModsInPath(), findLocaleFileInMods(), flattenMods(), and ModApiMainMenu::l_get_mod_list().
Here is the call graph for this function:
Here is the caller graph for this function:| std::map< std::string, ModSpec > getModsInPath | ( | const std::string & | path, |
| const std::string & | virtual_path, | ||
| int | modpack_depth = 0 ) |
Gets a list of all mods and modpacks in path.
| Path | to search, should be absolute |
| modpack_depth | If > 0: Is this searching within a modpack |
| virtual_path | Virtual path for this directory, see comment in ModSpec |
References fs::AbsolutePath(), DIR_DELIM, fs::GetDirListing(), and parseModContents().
Referenced by ModConfiguration::addModsFromConfig(), ModConfiguration::addModsInPath(), findLocaleFileInMods(), ModApiMainMenu::l_get_mod_list(), and parseModContents().
Here is the call graph for this function:
Here is the caller graph for this function:
|
nodiscard |
Retrieves depends, optdepends, is_modpack and modpack_content.
References ModSpec::author, ModSpec::depends, ModSpec::deprecation_msgs, ModSpec::desc, DIR_DELIM, Settings::exists(), Settings::get(), getModsInPath(), Settings::getS32(), ModSpec::is_modpack, ModSpec::is_name_explicit, fs::IsFile(), ModSpec::modpack_content, ModSpec::modpack_depth, ModSpec::name, ModSpec::optdepends, parseDependsString(), ModSpec::path, Settings::readConfigFile(), fs::ReadFile(), ModSpec::release, str_split(), and ModSpec::virtual_path.
Referenced by getModsInPath(), ModApiMainMenu::l_check_mod_configuration(), and ModApiMainMenu::l_get_content_info().
Here is the call graph for this function:
Here is the caller graph for this function: