32 const std::string _path;
33 std::string _name, _desc, _version, _author, _url, _id, _master;
36 std::string _requiredExtendedVersion;
37 std::vector<std::string> _externalResourceDirs;
40 ModInfo(
const std::string &path);
42 void load(
const std::string &filename);
44 const std::string &
getPath()
const;
46 const std::string &
getName()
const;
54 const std::string &
getId()
const;
61 bool canActivate(
const std::string &curMaster)
const;
const std::string & getId() const
Gets the id for this mod.
Definition: ModInfo.cpp:78
bool isMaster() const
Gets whether this mod is a master (i.e. a vanilla game/total conversion)
Definition: ModInfo.cpp:80
const std::string & getAuthor() const
Gets the author of this mod.
Definition: ModInfo.cpp:77
ModInfo(const std::string &path)
Creates default metadata for a mod at the specified path.
Definition: ModInfo.cpp:27
void setReservedSpace(int reservedSpace)
Sets mod size (DO NOT use this method outside Options::updateReservedSpace()).
Definition: ModInfo.cpp:83
const std::string & getMaster() const
Gets the master this mod can load under. If it can load under any master (or if this mod is a master ...
Definition: ModInfo.cpp:79
const std::string & getDescription() const
Gets the description for this mod.
Definition: ModInfo.cpp:75
const std::string & getName() const
Gets the name of this mod.
Definition: ModInfo.cpp:74
bool canActivate(const std::string &curMaster) const
Gets whether this mod can be activated.
Definition: ModInfo.cpp:97
const std::string & getVersion() const
Gets the version of this mod.
Definition: ModInfo.cpp:76
int getReservedSpace() const
Gets size of mod, bigger mod reserve more values in common colections/surfacesets.
Definition: ModInfo.cpp:82
Represents mod metadata.
Definition: ModInfo.h:29
const std::vector< std::string > & getExternalResourceDirs() const
Gets the list of external resource dirs to load for this mod.
Definition: ModInfo.cpp:103
const std::string & getRequiredExtendedVersion() const
Gets the OXCE version required by this mod.
Definition: ModInfo.cpp:81
const std::string & getPath() const
Gets the path where this mod resides on disk.
Definition: ModInfo.cpp:73
void load(const std::string &filename)
Loads the metadata from YAML.
Definition: ModInfo.cpp:35
Definition: BaseInfoState.cpp:40