mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
Fixes to Sdl
This commit is contained in:
parent
3bdb9645fd
commit
90a36af7f7
@ -36,6 +36,7 @@ path = [
|
||||
"src/images/github.png",
|
||||
"src/images/grid_icon.png",
|
||||
"src/images/keyboard_icon.png",
|
||||
"src/images/restart_icon.png",
|
||||
"src/images/iconsize_icon.png",
|
||||
"src/images/ko-fi.png",
|
||||
"src/images/list_icon.png",
|
||||
|
@ -2,13 +2,12 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <set>
|
||||
#include <fmt/core.h>
|
||||
#include <QString>
|
||||
#include <QFile>
|
||||
#include <QSettings>
|
||||
#include <QProcess>
|
||||
#include <QThread>
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
#include <QProcess>
|
||||
#include <QSettings>
|
||||
#include <QThread>
|
||||
#include <fmt/core.h>
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/debug.h"
|
||||
@ -16,6 +15,8 @@
|
||||
#include "common/logging/log.h"
|
||||
#ifdef ENABLE_QT_GUI
|
||||
#include <QtCore>
|
||||
#include <QString>
|
||||
#include <QCoreApplication>
|
||||
#include "common/memory_patcher.h"
|
||||
#endif
|
||||
#include "common/assert.h"
|
||||
|
@ -1,7 +1,11 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#ifdef ENABLE_QT_GUI
|
||||
#include <QString>
|
||||
#include <QCoreApplication>
|
||||
#include "common/memory_patcher.h"
|
||||
#endif
|
||||
#include <QFileInfo>
|
||||
#include <QProcess>
|
||||
#include <QStandardPaths>
|
||||
@ -372,7 +376,7 @@ void WindowSDL::WaitEvent() {
|
||||
case SDL_EVENT_QUIT:
|
||||
is_open = false;
|
||||
break;
|
||||
case SDL_EVENT_QUIT + 1:
|
||||
case SDL_EVENT_QUIT + 1:
|
||||
is_open = false;
|
||||
RelaunchEmulator();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user