Holds data regarding the installation of a single file in a fomod configuration.
More...
#include <file.h>
|
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.
|
|
|
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.
|
|
Holds data regarding the installation of a single file in a fomod configuration.
◆ operator<()
bool fomod::File::operator< |
( |
const File & | other | ) |
const |
|
inline |
Compares two File objects by their priority.
- Parameters
-
- 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
-
- Returns
- True if destinations are equal.
The documentation for this struct was generated from the following file: