From 817e8f5cd26739c69d930d21cd9dc4c0b6e4984e Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Sat, 14 Feb 2026 02:45:12 -0600 Subject: Add FUSE external mapping support, BG3/Oblivion Remastered fixes, fomod-plus and NaK integration FUSE VFS now deploys non-data-dir mod mappings (Paks, OBSE, UE4SS, etc.) via real symlinks and injects file-level data-dir mappings (plugins.txt, loadorder.txt) into the VFS tree. Fixes game launches for Oblivion Remastered (Root Builder path resolution, script extender support) and BG3 (Wine prefix documents directory, file mapper symlinks on Linux). Vendors mo2-fomod-plus plugin and NaK crate for FOMOD installer and game finder/runtime support. Co-Authored-By: Claude Opus 4.6 --- libs/game_bethesda/src/gamebryo/gamegamebryo.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libs/game_bethesda/src/*.cpp') diff --git a/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp b/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp index bcb29f2..caeeed0 100644 --- a/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp +++ b/libs/game_bethesda/src/gamebryo/gamegamebryo.cpp @@ -484,7 +484,11 @@ void GameGamebryo::copyToProfile(QString const& sourcePath, QString const& sourceFileName, QString const& destinationFileName) { - QString filePath = destinationDirectory.absoluteFilePath(destinationFileName); + // Use case-insensitive check so we don't create duplicates on Linux + // (e.g. a profile with "SkyrimPrefs.ini" from Windows is not overwritten + // by a new "skyrimprefs.ini" copy). + QString filePath = resolveFileCaseInsensitive( + destinationDirectory.absoluteFilePath(destinationFileName)); if (!QFileInfo(filePath).exists()) { QString sourceFile = sourcePath + "/" + sourceFileName; // On Linux, try case-insensitive match if the exact source doesn't exist -- cgit v1.3.1