diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-04 15:31:49 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-17 22:25:50 +0200 |
commit | cc27bb3231e355b147c529695317cf15e84178e1 (patch) | |
tree | 068cd6595135be285088474a7a11a8e3f260bbaa /launcher/UpdateController.cpp | |
parent | c1700054f4d3e7a070fd0b9b25f6ccb67b72aa06 (diff) | |
download | PrismLauncher-cc27bb3231e355b147c529695317cf15e84178e1.tar.gz PrismLauncher-cc27bb3231e355b147c529695317cf15e84178e1.tar.bz2 PrismLauncher-cc27bb3231e355b147c529695317cf15e84178e1.zip |
fix(updater): remove Windows version check
Qt 5.12 doesn't support anything older than Windows 7 anyway, so we
can't really check if we are on an older platform.
Diffstat (limited to 'launcher/UpdateController.cpp')
-rw-r--r-- | launcher/UpdateController.cpp | 14 |
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; |