Limo
A simple mod manager
Loading...
Searching...
No Matches
addmodinfo.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <filesystem>
9#include <string>
10#include <vector>
11
12
17{
19 std::string name;
21 std::string version;
23 std::string installer;
25 std::string source_path;
27 std::vector<int> deployers;
29 int group;
35 std::vector<std::pair<std::filesystem::path, std::filesystem::path>> files;
37 bool replace_mod = false;
39 std::filesystem::path local_source = "";
41 std::string remote_source = "";
42};
Stores data needed to install a new mod.
Definition addmodinfo.h:17
std::string source_path
Path to the mods files.
Definition addmodinfo.h:25
std::filesystem::path local_source
Path to the local archive or directory used to install this mod.
Definition addmodinfo.h:39
int group
Id of the mod the group of which the new mod will be added to, or -1 for no group.
Definition addmodinfo.h:29
std::vector< int > deployers
Ids of deployers to which the new mod will be added.
Definition addmodinfo.h:27
bool replace_mod
If true: The newly installed mod will replace the mod specified in group.
Definition addmodinfo.h:37
int installer_flags
Flags for the installer.
Definition addmodinfo.h:31
std::vector< std::pair< std::filesystem::path, std::filesystem::path > > files
Contains pairs of source and destination paths for installation files.
Definition addmodinfo.h:35
std::string name
Name of the new mod.
Definition addmodinfo.h:19
int root_level
If > 0: Remove path components with depth < root_level.
Definition addmodinfo.h:33
std::string installer
Installer type to be used.
Definition addmodinfo.h:23
std::string remote_source
URL from where the mod was downloaded.
Definition addmodinfo.h:41
std::string version
Version of the new mod.
Definition addmodinfo.h:21