mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Mods: Combine mod loading checks and deprection logging (#11503)
This limits the logged deprecation messages to the mods that are loaded Unifies the mod naming convention check for CSM & SSM
This commit is contained in:
parent
e7cd4cfa25
commit
32cb9d0828
4 changed files with 34 additions and 29 deletions
|
@ -49,6 +49,9 @@ struct ModSpec
|
|||
bool part_of_modpack = false;
|
||||
bool is_modpack = false;
|
||||
|
||||
// For logging purposes
|
||||
std::vector<const char *> deprecation_msgs;
|
||||
|
||||
// if modpack:
|
||||
std::map<std::string, ModSpec> modpack_content;
|
||||
ModSpec(const std::string &name = "", const std::string &path = "") :
|
||||
|
@ -59,6 +62,8 @@ struct ModSpec
|
|||
name(name), path(path), part_of_modpack(part_of_modpack)
|
||||
{
|
||||
}
|
||||
|
||||
void checkAndLog() const;
|
||||
};
|
||||
|
||||
// Retrieves depends, optdepends, is_modpack and modpack_content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue