aboutsummaryrefslogtreecommitdiff
path: root/launcher/UpdateController.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-05-18 15:47:17 +0200
committerGitHub <noreply@github.com>2022-05-18 15:47:17 +0200
commitb883ce5c517e0d22d994ec894aa868d7e2392b06 (patch)
tree2408832b17b4b7e081017cfd585eeb5783b98081 /launcher/UpdateController.cpp
parentcc13310083fe8d0c3bb423fa3e31db7b1f7b25e1 (diff)
parenta21bd41580ba8ba4c0052efa8196d617e7211335 (diff)
downloadPrismLauncher-b883ce5c517e0d22d994ec894aa868d7e2392b06.tar.gz
PrismLauncher-b883ce5c517e0d22d994ec894aa868d7e2392b06.tar.bz2
PrismLauncher-b883ce5c517e0d22d994ec894aa868d7e2392b06.zip
Merge pull request #127 from Scrumplex/refactor-bump-qt5.12
Diffstat (limited to 'launcher/UpdateController.cpp')
-rw-r--r--launcher/UpdateController.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/launcher/UpdateController.cpp b/launcher/UpdateController.cpp
index c02cd1e7..646f8e57 100644
--- a/launcher/UpdateController.cpp
+++ b/launcher/UpdateController.cpp
@@ -138,20 +138,6 @@ void UpdateController::installUpdates()
}
#endif
QFileInfo destination (FS::PathCombine(m_root, op.destination));
-#ifdef Q_OS_WIN32
- if(QSysInfo::windowsVersion() < QSysInfo::WV_VISTA)
- {
- if(destination.fileName() == windowsExeName)
- {
- QDir rootDir(m_root);
- exeOrigin = rootDir.relativeFilePath(op.source);
- exePath = rootDir.relativeFilePath(op.destination);
- exeBackup = rootDir.relativeFilePath(FS::PathCombine(backupPath, destination.fileName()));
- useXPHack = true;
- continue;
- }
- }
-#endif
if(destination.exists())
{
QString backupName = op.destination;