Check Oblivion Remastered plugins' master flag

Although the game doesn't require master files to load before non-master files, if they load after that can apparently cause issues, so make LOOT sort master files first.
This commit is contained in:
Oliver Hamlet
2025-05-12 17:23:43 +01:00
parent c6747a85c8
commit d058d34bca
2 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -222,8 +222,7 @@ std::unique_ptr<::Plugin, decltype(&esp_plugin_free)> MakeEspluginPtr() {
}
bool ShouldIgnoreMasterFlag(GameType gameType) {
return gameType == GameType::openmw ||
gameType == GameType::oblivionRemastered;
return gameType == GameType::openmw;
}
}
@@ -186,8 +186,7 @@ TEST_P(PluginInterfaceTest,
EXPECT_EQ(blankEsm, plugin->GetName());
EXPECT_TRUE(plugin->GetMasters().empty());
if (GetParam() == GameType::openmw ||
GetParam() == GameType::oblivionRemastered) {
if (GetParam() == GameType::openmw) {
EXPECT_FALSE(plugin->IsMaster());
} else {
EXPECT_TRUE(plugin->IsMaster());
@@ -212,8 +211,7 @@ TEST_P(PluginInterfaceTest, shouldBeAbleToGetAllDataFromFullyLoadedPlugin) {
EXPECT_EQ(blankEsm, plugin->GetName());
EXPECT_TRUE(plugin->GetMasters().empty());
if (GetParam() == GameType::openmw ||
GetParam() == GameType::oblivionRemastered) {
if (GetParam() == GameType::openmw) {
EXPECT_FALSE(plugin->IsMaster());
} else {
EXPECT_TRUE(plugin->IsMaster());