mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Use virtual paths to specify exact mod to enable (#11784)
This commit is contained in:
parent
8c0331d244
commit
128f6359e9
11 changed files with 223 additions and 80 deletions
|
@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include <string>
|
||||
#include <set>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
class Settings;
|
||||
|
@ -33,13 +34,16 @@ struct SubgameSpec
|
|||
int release;
|
||||
std::string path;
|
||||
std::string gamemods_path;
|
||||
std::set<std::string> addon_mods_paths;
|
||||
|
||||
/**
|
||||
* Map from virtual path to mods path
|
||||
*/
|
||||
std::unordered_map<std::string, std::string> addon_mods_paths;
|
||||
std::string menuicon_path;
|
||||
|
||||
SubgameSpec(const std::string &id = "", const std::string &path = "",
|
||||
const std::string &gamemods_path = "",
|
||||
const std::set<std::string> &addon_mods_paths =
|
||||
std::set<std::string>(),
|
||||
const std::unordered_map<std::string, std::string> &addon_mods_paths = {},
|
||||
const std::string &name = "",
|
||||
const std::string &menuicon_path = "",
|
||||
const std::string &author = "", int release = 0) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue