mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update libloadorder to v17.0.0
This commit is contained in:
@@ -302,7 +302,7 @@ TEST_P(GameInterfaceTest, setLoadOrderShouldSetTheLoadOrder) {
|
||||
|
||||
EXPECT_EQ(loadOrder, handle_->GetLoadOrder());
|
||||
|
||||
if (gameSupportsEsl) {
|
||||
if (gameSupportsEsl && GetParam() != GameType::starfield) {
|
||||
loadOrder.erase(std::begin(loadOrder));
|
||||
}
|
||||
|
||||
|
||||
@@ -179,12 +179,19 @@ TEST_P(GameTest,
|
||||
game.LoadCurrentLoadOrderState();
|
||||
auto loadOrder = game.GetLoadOrder();
|
||||
|
||||
const auto filename = "plugin.esp";
|
||||
const auto dataFilePath =
|
||||
dataPath.parent_path().parent_path() / "Data" / "plugin.esp";
|
||||
dataPath.parent_path().parent_path() / "Data" / filename;
|
||||
std::filesystem::create_directories(dataFilePath.parent_path());
|
||||
std::filesystem::copy_file(getSourcePluginsPath() / blankEsp, dataFilePath);
|
||||
ASSERT_TRUE(std::filesystem::exists(dataFilePath));
|
||||
|
||||
if (GetParam() == GameType::starfield) {
|
||||
std::filesystem::copy_file(getSourcePluginsPath() / blankEsp,
|
||||
dataPath / filename);
|
||||
ASSERT_TRUE(std::filesystem::exists(dataPath / filename));
|
||||
}
|
||||
|
||||
std::filesystem::last_write_time(
|
||||
dataFilePath,
|
||||
std::filesystem::file_time_type::clock().now() + std::chrono::hours(1));
|
||||
@@ -192,7 +199,7 @@ TEST_P(GameTest,
|
||||
game.SetAdditionalDataPaths({dataFilePath.parent_path()});
|
||||
game.LoadCurrentLoadOrderState();
|
||||
|
||||
loadOrder.push_back("plugin.esp");
|
||||
loadOrder.push_back(filename);
|
||||
|
||||
EXPECT_EQ(loadOrder, game.GetLoadOrder());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user