From 3b0bcc514a15a3d6b6d31423cf42b6c43e85bf1c Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Wed, 18 Feb 2026 00:05:48 -0600 Subject: Log Wine prefix plugin/INI paths at startup, fix noisy mergeTweak warning - Log the resolved AppData/Local plugins dir and Documents/My Games INI dir at launch so users can verify correct paths in the terminal - Downgrade mergeTweak warning for missing profile_tweaks.ini to debug level since this file is optional and only exists if the user creates profile-level INI tweaks Co-Authored-By: Claude Opus 4.6 --- src/src/organizercore.cpp | 8 ++++++++ src/src/profile.cpp | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/organizercore.cpp b/src/src/organizercore.cpp index dd1b33b..f2b65ec 100644 --- a/src/src/organizercore.cpp +++ b/src/src/organizercore.cpp @@ -2173,6 +2173,14 @@ bool OrganizerCore::beforeRun( WinePrefix prefix(prefixPathStr); if (prefix.isValid()) { const QString dataDirName = resolveWineDataDirName(managedGame()); + const QString appDataLocal = prefix.appdataLocal(); + const QString pluginsTargetDir = + QDir(appDataLocal).filePath(dataDirName); + const QString documentsDir = + resolvePrefixGameDocumentsDir(prefix, dataDirName); + log::info("Wine prefix paths: AppData/Local plugins dir='{}', " + "Documents/My Games INI dir='{}'", + pluginsTargetDir, documentsDir); const auto localSavesFeature = gameFeatures().gameFeature(); const QString saveRelativePath = resolveSaveRelativePath(m_CurrentProfile, managedGame(), diff --git a/src/src/profile.cpp b/src/src/profile.cpp index 5489fc9..c0cf81a 100644 --- a/src/src/profile.cpp +++ b/src/src/profile.cpp @@ -831,7 +831,13 @@ void Profile::mergeTweak(const QString& tweakName, const QString& tweakedIni) co // line continuations or URL-encode spaces in keys). QFile sourceFile(tweakName); if (!sourceFile.open(QIODevice::ReadOnly | QIODevice::Text)) { - log::warn("mergeTweak: could not open tweak file '{}'", tweakName); + if (QFileInfo::exists(tweakName)) { + log::warn("mergeTweak: tweak file '{}' exists but could not be opened", + tweakName); + } else { + log::debug("mergeTweak: tweak file '{}' does not exist, skipping", + tweakName); + } return; } -- cgit v1.3.1