aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/src/organizercore.cpp8
-rw-r--r--src/src/profile.cpp8
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;
}