diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-18 00:05:48 -0600 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-18 00:05:48 -0600 |
| commit | 3b0bcc514a15a3d6b6d31423cf42b6c43e85bf1c (patch) | |
| tree | 3a72b58c80e2ef79f98c0177fcb5997cbf3e06f0 /src | |
| parent | 480a57cf037a46f176128e6c94aa5616fcf704a3 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/src/organizercore.cpp | 8 | ||||
| -rw-r--r-- | src/src/profile.cpp | 8 |
2 files changed, 15 insertions, 1 deletions
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<LocalSavegames>();
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;
}
|
