Minetest  5.4.0
mods.h File Reference
#include "irrlichttypes.h"
#include <list>
#include <set>
#include <vector>
#include <string>
#include <map>
#include <json/json.h>
#include <unordered_set>
#include "util/basic_macros.h"
#include "config.h"
#include "metadata.h"
+ 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  ModConfiguration
 
class  ClientModConfiguration
 
class  ModMetadata
 

Macros

#define MODNAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyz0123456789_"
 

Functions

void parseModContents (ModSpec &mod)
 
std::map< std::string, ModSpecgetModsInPath (const std::string &path, bool part_of_modpack=false)
 
std::vector< ModSpecflattenMods (const std::map< std::string, ModSpec > &mods)
 

Macro Definition Documentation

◆ MODNAME_ALLOWED_CHARS

#define MODNAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyz0123456789_"

Function Documentation

◆ flattenMods()

std::vector<ModSpec> flattenMods ( const std::map< std::string, ModSpec > &  mods)

References ModSpec::is_modpack, and ModSpec::modpack_content.

Referenced by ModConfiguration::addModsFromConfig(), and ModConfiguration::addModsInPath().

+ Here is the caller graph for this function:

◆ getModsInPath()

std::map<std::string, ModSpec> getModsInPath ( const std::string &  path,
bool  part_of_modpack = false 
)

References DIR_DELIM, fs::GetDirListing(), and parseModContents().

Referenced by ModConfiguration::addModsFromConfig(), ModConfiguration::addModsInPath(), and parseModContents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseModContents()

void parseModContents ( ModSpec mod)

References ModSpec::author, ModSpec::depends, ModSpec::desc, DIR_DELIM, Settings::exists(), Settings::get(), getModsInPath(), Settings::getS32(), ModSpec::is_modpack, ModSpec::modpack_content, ModSpec::name, ModSpec::optdepends, parseDependsString(), ModSpec::path, Settings::readConfigFile(), ModSpec::release, and str_split().

Referenced by getModsInPath(), and ModApiMainMenu::l_get_content_info().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: