Limo
A simple mod manager
Loading...
Searching...
No Matches
ImportModInfo Struct Reference

Stores data needed to download or extract a mod. More...

#include <importmodinfo.h>

Public Types

enum  Type { download = 0 , extract = 1 }
 Describes what import action should be taken.
 

Public Member Functions

bool operator< (const ImportModInfo &other) const
 Compares with another ImportModInfo object by their type.
 

Public Attributes

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.
 

Detailed Description

Stores data needed to download or extract a mod.

Member Function Documentation

◆ operator<()

bool ImportModInfo::operator< ( const ImportModInfo & other) const
inline

Compares with another ImportModInfo object by their type.

Parameters
otherObject to compare to.
Returns
True if only this object has type extract, else false.

Member Data Documentation

◆ 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: