aboutsummaryrefslogtreecommitdiff
path: root/libs/game_bethesda/src/games/skyrimvr
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-17 23:59:40 -0600
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-02-17 23:59:48 -0600
commit480a57cf037a46f176128e6c94aa5616fcf704a3 (patch)
tree35be94099e2669f518c623acdf8fe23ee82e55a8 /libs/game_bethesda/src/games/skyrimvr
parent91e1d7f9f03ab3fd77cee94c1eac2abf89254e50 (diff)
Fix Wine prefix deployment, INI handling, and data directory paths
- Fix data directory path to use ~/.var/app/com.fluorine.manager consistently (was ~/.local/share/fluorine in committed code) - Fix VFS helper path in fuseconnector.cpp to use fluorineDataDir() - Fix localAppFolder() to resolve Wine prefix AppData/Local on Linux instead of returning XDG ~/.local/share - Add localAppName() virtual method for correct AppData folder mapping (Enderal→"enderal", Nehrim→"Oblivion") - Fix mergeTweak() to use direct INI parser instead of QSettings which corrupts backslashes and URL-encodes spaces in keys - Make resolveWineDataDirName() more robust with existence checks and fallback chain (documentsDirectory → gameShortName → gameName) - Add comprehensive debug logging throughout Wine prefix deployment - Fix INI case handling: copy instead of symlink for case-mismatched INIs, ensure both proper-case and lowercase aliases exist - Remove native build script (Flatpak only) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/game_bethesda/src/games/skyrimvr')
-rw-r--r--libs/game_bethesda/src/games/skyrimvr/gameskyrimvr.cpp10
-rw-r--r--libs/game_bethesda/src/games/skyrimvr/skyrimvrdataarchives.cpp8
2 files changed, 9 insertions, 9 deletions
diff --git a/libs/game_bethesda/src/games/skyrimvr/gameskyrimvr.cpp b/libs/game_bethesda/src/games/skyrimvr/gameskyrimvr.cpp
index 67db6d0..625d846 100644
--- a/libs/game_bethesda/src/games/skyrimvr/gameskyrimvr.cpp
+++ b/libs/game_bethesda/src/games/skyrimvr/gameskyrimvr.cpp
@@ -152,13 +152,13 @@ void GameSkyrimVR::initializeProfile(const QDir& path, ProfileSettings settings)
if (settings.testFlag(IPluginGame::CONFIGURATION)) {
if (settings.testFlag(IPluginGame::PREFER_DEFAULTS) ||
- !QFileInfo(myGamesPath() + "/skyrimvr.ini").exists()) {
- copyToProfile(gameDirectory().absolutePath(), path, "skyrim.ini", "skyrimvr.ini");
+ !QFileInfo(myGamesPath() + "/SkyrimVR.ini").exists()) {
+ copyToProfile(gameDirectory().absolutePath(), path, "Skyrim.ini", "SkyrimVR.ini");
} else {
- copyToProfile(myGamesPath(), path, "skyrimvr.ini");
+ copyToProfile(myGamesPath(), path, "SkyrimVR.ini");
}
- copyToProfile(myGamesPath(), path, "skyrimprefs.ini");
+ copyToProfile(myGamesPath(), path, "SkyrimPrefs.ini");
}
}
@@ -224,7 +224,7 @@ QString GameSkyrimVR::gameNexusName() const
QStringList GameSkyrimVR::iniFiles() const
{
- return {"skyrimvr.ini", "skyrimprefs.ini"};
+ return {"SkyrimVR.ini", "SkyrimPrefs.ini"};
}
QStringList GameSkyrimVR::DLCPlugins() const
diff --git a/libs/game_bethesda/src/games/skyrimvr/skyrimvrdataarchives.cpp b/libs/game_bethesda/src/games/skyrimvr/skyrimvrdataarchives.cpp
index 752aa15..6c032d9 100644
--- a/libs/game_bethesda/src/games/skyrimvr/skyrimvrdataarchives.cpp
+++ b/libs/game_bethesda/src/games/skyrimvr/skyrimvrdataarchives.cpp
@@ -19,8 +19,8 @@ QStringList SkyrimVRDataArchives::archives(const MOBase::IProfile* profile) cons
QStringList result;
QString iniFile = profile->localSettingsEnabled()
- ? QDir(profile->absolutePath()).absoluteFilePath("skyrimvr.ini")
- : localGameDirectory().absoluteFilePath("skyrimvr.ini");
+ ? QDir(profile->absolutePath()).absoluteFilePath("SkyrimVR.ini")
+ : localGameDirectory().absoluteFilePath("SkyrimVR.ini");
result.append(getArchivesFromKey(iniFile, "SResourceArchiveList"));
result.append(getArchivesFromKey(iniFile, "SResourceArchiveList2"));
@@ -33,8 +33,8 @@ void SkyrimVRDataArchives::writeArchiveList(MOBase::IProfile* profile,
QString list = before.join(", ");
QString iniFile = profile->localSettingsEnabled()
- ? QDir(profile->absolutePath()).absoluteFilePath("skyrimvr.ini")
- : localGameDirectory().absoluteFilePath("skyrimvr.ini");
+ ? QDir(profile->absolutePath()).absoluteFilePath("SkyrimVR.ini")
+ : localGameDirectory().absoluteFilePath("SkyrimVR.ini");
if (list.length() > 255) {
int splitIdx = list.lastIndexOf(",", 256);
setArchivesToKey(iniFile, "SResourceArchiveList", list.mid(0, splitIdx));