Fixes to Sdl

This commit is contained in:
Dmugetsu 2025-02-14 19:07:06 -06:00
parent 3bdb9645fd
commit 90a36af7f7
3 changed files with 13 additions and 7 deletions

View File

@ -36,6 +36,7 @@ path = [
"src/images/github.png", "src/images/github.png",
"src/images/grid_icon.png", "src/images/grid_icon.png",
"src/images/keyboard_icon.png", "src/images/keyboard_icon.png",
"src/images/restart_icon.png",
"src/images/iconsize_icon.png", "src/images/iconsize_icon.png",
"src/images/ko-fi.png", "src/images/ko-fi.png",
"src/images/list_icon.png", "src/images/list_icon.png",

View File

@ -2,13 +2,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#include <set> #include <set>
#include <fmt/core.h>
#include <QString>
#include <QFile>
#include <QSettings>
#include <QProcess>
#include <QThread>
#include <QDebug> #include <QDebug>
#include <QFile>
#include <QProcess>
#include <QSettings>
#include <QThread>
#include <fmt/core.h>
#include "common/config.h" #include "common/config.h"
#include "common/debug.h" #include "common/debug.h"
@ -16,6 +15,8 @@
#include "common/logging/log.h" #include "common/logging/log.h"
#ifdef ENABLE_QT_GUI #ifdef ENABLE_QT_GUI
#include <QtCore> #include <QtCore>
#include <QString>
#include <QCoreApplication>
#include "common/memory_patcher.h" #include "common/memory_patcher.h"
#endif #endif
#include "common/assert.h" #include "common/assert.h"

View File

@ -1,7 +1,11 @@
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#ifdef ENABLE_QT_GUI
#include <QString>
#include <QCoreApplication> #include <QCoreApplication>
#include "common/memory_patcher.h"
#endif
#include <QFileInfo> #include <QFileInfo>
#include <QProcess> #include <QProcess>
#include <QStandardPaths> #include <QStandardPaths>
@ -372,7 +376,7 @@ void WindowSDL::WaitEvent() {
case SDL_EVENT_QUIT: case SDL_EVENT_QUIT:
is_open = false; is_open = false;
break; break;
case SDL_EVENT_QUIT + 1: case SDL_EVENT_QUIT + 1:
is_open = false; is_open = false;
RelaunchEmulator(); RelaunchEmulator();
break; break;