Support plugin and archive symlinks

On Linux, and on Windows when the game is OpenMW or Oblivion Remastered.
This commit is contained in:
Oliver Hamlet
2025-08-03 14:26:17 +01:00
parent d6b0244203
commit 9f45282bee
5 changed files with 79 additions and 20 deletions
+4 -3
View File
@@ -482,9 +482,10 @@ private:
const std::vector<std::pair<std::string, bool>>& loadOrder) const {
if (gameType_ == GameType::tes3) {
std::ofstream out(gamePath / "Morrowind.ini");
for (const auto& plugin : loadOrder) {
if (plugin.second) {
out << "GameFile0=" << plugin.first << std::endl;
out << "[Game Files]" << std::endl;
for (auto i = 0; i < loadOrder.size(); i += 1) {
if (loadOrder[i].second) {
out << "GameFile" << i << "=" << loadOrder[i].first << std::endl;
}
}
} else if (gameType_ == GameType::openmw) {