diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2017-12-08 19:41:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-08 19:41:04 +0200 |
| commit | 0aaece55d8b5bb392523db4ee96029d0567294e8 (patch) | |
| tree | b54e386cf49645dc5739c06c6c809ca4b80220c6 /src/transfersavesdialog.cpp | |
| parent | 7c80181e010af25a2d1d0df12f4c715aa6a7bed9 (diff) | |
| parent | ef21bd6193e6d0bebe356dd3401dafcf064c3aa6 (diff) | |
Merge pull request #138 from Silarn/mainline_dev
Fixes for local saves and configuration handling
Diffstat (limited to 'src/transfersavesdialog.cpp')
| -rw-r--r-- | src/transfersavesdialog.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/transfersavesdialog.cpp b/src/transfersavesdialog.cpp index e130b1ae..b8dda056 100644 --- a/src/transfersavesdialog.cpp +++ b/src/transfersavesdialog.cpp @@ -334,6 +334,26 @@ bool TransferSavesDialog::transferCharacters( sourceFile.absoluteFilePath().toUtf8().constData(),
destinationFile.toUtf8().constData());
}
+
+ QFileInfo sourceFileSE(sourceFile.absolutePath() + "/" + sourceFile.completeBaseName() + "." + m_GamePlugin->savegameSEExtension());
+ if (sourceFileSE.exists()) {
+ QString destinationFileSE(destination.absoluteFilePath(sourceFileSE.fileName()));
+
+ //If the file is already there, let them skip (or not).
+ if (QFile::exists(destinationFileSE)) {
+ if (!testOverwrite(overwriteMode, destinationFileSE)) {
+ continue;
+ }
+ //OK, they want to remove it.
+ QFile::remove(destinationFileSE);
+ }
+
+ if (!method(sourceFileSE.absoluteFilePath(), destinationFileSE)) {
+ qCritical(errmsg,
+ sourceFileSE.absoluteFilePath().toUtf8().constData(),
+ destinationFileSE.toUtf8().constData());
+ }
+ }
}
}
return true;
|
