Limo
A simple mod manager
Loading...
Searching...
No Matches
fomod::File Struct Reference

Holds data regarding the installation of a single file in a fomod configuration. More...

#include <file.h>

Public Member Functions

bool operator== (const File &other) const
 Compares two File objects by their destination.
 
bool operator< (const File &other) const
 Compares two File objects by their priority.
 

Public Attributes

std::filesystem::path source
 Source path, relative to mods root directory.
 
std::filesystem::path destination = ""
 Destination path, relative to target root.
 
bool always_install = false
 If True: Always install, regardless of selection.
 
bool install_if_usable = false
 If True: Always install if dependencies are fulfilled.
 
int priority = -std::numeric_limits<int>::max()
 If two files share a destination, the higher priority file gets installed.
 

Detailed Description

Holds data regarding the installation of a single file in a fomod configuration.

Member Function Documentation

◆ operator<()

bool fomod::File::operator< ( const File & other) const
inline

Compares two File objects by their priority.

Parameters
otherOther File.
Returns
True if this has lower priority.

◆ operator==()

bool fomod::File::operator== ( const File & other) const
inline

Compares two File objects by their destination.

Parameters
otherOther File.
Returns
True if destinations are equal.

The documentation for this struct was generated from the following file: