Stores data needed to download or extract a mod.
More...
#include <importmodinfo.h>
|
enum | Type { download = 0
, extract = 1
} |
| Describes what import action should be taken.
|
|
|
int | app_id |
| Target ModdedApplication.
|
|
Type | type |
| Type of action to be performed.
|
|
std::filesystem::path | local_source |
| Path to the local file used for extraction or empty if type == download.
|
|
std::string | remote_source = "" |
| URL used to download the mod. Can be either a URL pointing to the mod itself or a NexusMods nxm URL.
|
|
std::filesystem::path | target_path |
| This is where the mod should be stored after extraction/ download.
|
|
int | nexus_file_id = -1 |
| If remote_source is a NexusMods mod page: The id of the file to be downloaded, else: Not set.
|
|
int | mod_id = -1 |
| If !=-1: The mod should be added to this mods group after installation.
|
|
std::chrono::time_point< std::chrono::high_resolution_clock > | queue_time |
| Time at which this object was added to the queue. Used for sorting.
|
|
std::string | version_overwrite = "" |
| If this is not empty: Use this as mod version.
|
|
std::string | name_overwrite = "" |
| If this is not empty: Use this as mod name.
|
|
Stores data needed to download or extract a mod.
◆ operator<()
bool ImportModInfo::operator< |
( |
const ImportModInfo & | other | ) |
const |
|
inline |
Compares with another ImportModInfo object by their type.
- Parameters
-
other | Object to compare to. |
- Returns
- True if only this object has type extract, else false.
◆ queue_time
std::chrono::time_point<std::chrono::high_resolution_clock> ImportModInfo::queue_time |
Initial value:=
std::chrono::high_resolution_clock::now()
Time at which this object was added to the queue. Used for sorting.
The documentation for this struct was generated from the following file: