mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update libloadorder to 14.2.1
This commit is contained in:
+2
-2
@@ -98,8 +98,8 @@ endif()
|
||||
|
||||
ExternalProject_Add(libloadorder
|
||||
PREFIX "external"
|
||||
URL "https://github.com/Ortham/libloadorder/archive/14.2.0.tar.gz"
|
||||
URL_HASH "SHA256=247969e3fb67ad0a883ac81ac52a4258ee92b8417d11f45308cc23ccc0d61b36"
|
||||
URL "https://github.com/Ortham/libloadorder/archive/14.2.1.tar.gz"
|
||||
URL_HASH "SHA256=4341844407f55ce9d96826a933ac35dfb22bbad14906e5dff742f910182eca93"
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_IN_SOURCE 1
|
||||
BUILD_COMMAND cargo build --release --manifest-path ffi/Cargo.toml --target ${RUST_TARGET} &&
|
||||
|
||||
@@ -201,7 +201,7 @@ protected:
|
||||
actual.push_back(line);
|
||||
}
|
||||
} else {
|
||||
actual = readFileLines(localPath / "plugins.txt");
|
||||
actual = readFileLines(localPath / pluginsTxtName(GetParam()));
|
||||
for (auto& line : actual) {
|
||||
if (line[0] == '*')
|
||||
line = line.substr(1);
|
||||
@@ -320,7 +320,7 @@ private:
|
||||
}
|
||||
}
|
||||
} else {
|
||||
std::ofstream out(localPath / "plugins.txt");
|
||||
std::ofstream out(localPath / pluginsTxtName(GetParam()));
|
||||
for (const auto& plugin : loadOrder) {
|
||||
if (GetParam() == GameType::fo4 || GetParam() == GameType::tes5se) {
|
||||
if (plugin.second)
|
||||
@@ -357,6 +357,10 @@ private:
|
||||
return gameType == GameType::tes3 || gameType == GameType::tes4 ||
|
||||
gameType == GameType::fo3 || gameType == GameType::fonv;
|
||||
}
|
||||
|
||||
static std::string pluginsTxtName(GameType gameType) {
|
||||
return gameType == GameType::tes4 ? "Plugins.txt" : "plugins.txt";
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user