mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-20 02:53:57 +00:00
fix: Linux compiling
Made it so that the updater stuff is windows only. Signed-off-by: Boss.sfc <boss.sfc@citron-emu.org>
This commit is contained in:
@@ -164,7 +164,9 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
|
||||
#include "citron/play_time_manager.h"
|
||||
#include "citron/startup_checks.h"
|
||||
#include "citron/uisettings.h"
|
||||
#ifdef _WIN32
|
||||
#include "citron/updater/updater_dialog.h"
|
||||
#endif
|
||||
#include "citron/updater/updater_service.h"
|
||||
#include "citron/util/clickable_label.h"
|
||||
#include "citron/util/performance_overlay.h"
|
||||
@@ -5562,6 +5564,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
void GMainWindow::OnCheckForUpdates() {
|
||||
#ifdef _WIN32
|
||||
// Use HTTP URL to bypass SSL issues (will be redirected to HTTPS but handled by updater)
|
||||
// TODO: Fix SSL libraries and revert to https://releases.citron-emu.org/api/check
|
||||
std::string update_url = "http://releases.citron-emu.org/api/check";
|
||||
@@ -5571,6 +5574,10 @@ void GMainWindow::OnCheckForUpdates() {
|
||||
updater_dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
updater_dialog->show();
|
||||
updater_dialog->CheckForUpdates(update_url);
|
||||
#else
|
||||
QMessageBox::information(this, tr("Updates"),
|
||||
tr("The update dialog is only available on Windows in this build."));
|
||||
#endif
|
||||
}
|
||||
|
||||
void GMainWindow::CheckForUpdatesAutomatically() {
|
||||
|
||||
Reference in New Issue
Block a user