Qt: Update elevator for non-writable paths
i.e. support installation in Program Files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <stenzek@gmail.com>
|
||||
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
|
||||
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
||||
|
||||
#pragma once
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtWidgets/QDialog>
|
||||
|
||||
class Error;
|
||||
class HTTPDownloader;
|
||||
|
||||
class EmuThread;
|
||||
@@ -60,12 +61,12 @@ private:
|
||||
void queueGetChanges();
|
||||
void getChangesComplete(s32 status_code, std::vector<u8> response);
|
||||
|
||||
bool processUpdate(const std::vector<u8>& update_data);
|
||||
|
||||
#ifdef _WIN32
|
||||
bool processUpdate(const std::vector<u8>& update_data);
|
||||
bool extractUpdater(const QString& zip_path, const QString& destination_path);
|
||||
bool doUpdate(const QString& zip_path, const QString& updater_path, const QString& destination_path);
|
||||
#else
|
||||
bool processUpdate(const std::vector<u8>& update_data);
|
||||
bool doesUpdaterNeedElevation(const std::string& application_dir) const;
|
||||
bool doUpdate(const std::string& application_dir, const std::string& zip_path, const std::string& updater_path);
|
||||
bool extractUpdater(const std::string& zip_path, const std::string& destination_path, Error* error);
|
||||
#endif
|
||||
|
||||
Ui::AutoUpdaterDialog m_ui;
|
||||
|
||||
Reference in New Issue
Block a user