1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Allow game to specify first and last mod in mod loading order (#14177)

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
sfence 2024-06-01 16:36:20 +02:00 committed by GitHub
parent a4768d1638
commit 140b9e5a5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 141 additions and 64 deletions

View file

@ -32,6 +32,8 @@ struct SubgameSpec
std::string title;
std::string author;
int release;
std::string first_mod; // "" <=> no mod
std::string last_mod; // "" <=> no mod
std::string path;
std::string gamemods_path;
@ -49,10 +51,16 @@ struct SubgameSpec
const std::unordered_map<std::string, std::string> &addon_mods_paths = {},
const std::string &title = "",
const std::string &menuicon_path = "",
const std::string &author = "", int release = 0) :
const std::string &author = "", int release = 0,
const std::string &first_mod = "",
const std::string &last_mod = "") :
id(id),
title(title), author(author), release(release), path(path),
gamemods_path(gamemods_path), addon_mods_paths(addon_mods_paths),
title(title), author(author), release(release),
first_mod(first_mod),
last_mod(last_mod),
path(path),
gamemods_path(gamemods_path),
addon_mods_paths(addon_mods_paths),
menuicon_path(menuicon_path)
{
}