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:
Boss.sfc
2025-09-14 18:46:18 +07:00
parent 94119302ec
commit a3c4f0614a
6 changed files with 33 additions and 6 deletions

View File

@@ -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() {