From 143f499d11ca21fd7f49aa44e9c355edeb98572d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 25 Mar 2023 10:37:49 +0100 Subject: [PATCH] Remove a few of the Host implementations --- CMakeLists.txt | 2 -- Qt/QtHost.cpp | 18 -------------- Qt/QtHost.h | 24 ------------------- Qt/QtMain.cpp | 6 ++--- UI/HostTypes.h | 24 ------------------- UI/NativeApp.cpp | 3 +-- UI/UI.vcxproj | 1 - UI/UI.vcxproj.filters | 1 - UWP/PPSSPP_UWPMain.cpp | 4 ++-- UWP/UI_UWP/UI_UWP.vcxproj | 1 - UWP/UI_UWP/UI_UWP.vcxproj.filters | 1 - UWP/UWP.vcxproj | 2 -- UWP/UWP.vcxproj.filters | 14 +++++++++-- UWP/UWPHost.cpp | 27 --------------------- UWP/UWPHost.h | 9 ------- Windows/PPSSPP.vcxproj | 40 ------------------------------- Windows/PPSSPP.vcxproj.filters | 14 +---------- headless/StubHost.h | 1 - 18 files changed, 19 insertions(+), 173 deletions(-) delete mode 100644 Qt/QtHost.cpp delete mode 100644 Qt/QtHost.h delete mode 100644 UI/HostTypes.h delete mode 100644 UWP/UWPHost.cpp delete mode 100644 UWP/UWPHost.h diff --git a/CMakeLists.txt b/CMakeLists.txt index c8f58a7653..283405ff91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1213,8 +1213,6 @@ elseif(USING_QT_UI) list(APPEND NativeAppSource Qt/QtMain.cpp Qt/QtMain.h - Qt/QtHost.cpp - Qt/QtHost.h Qt/mainwindow.cpp Qt/mainwindow.h ) diff --git a/Qt/QtHost.cpp b/Qt/QtHost.cpp deleted file mode 100644 index 7c323cfc9d..0000000000 --- a/Qt/QtHost.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2014- PPSSPP Project. - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 2.0 or later versions. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License 2.0 for more details. - -// A copy of the GPL 2.0 should have been included with the program. -// If not, see http://www.gnu.org/licenses/ - -// Official git repository and contact information can be found at -// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. - -#include "Qt/QtHost.h" diff --git a/Qt/QtHost.h b/Qt/QtHost.h deleted file mode 100644 index 7e29d56f6d..0000000000 --- a/Qt/QtHost.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2014- PPSSPP Project. - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 2.0 or later versions. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License 2.0 for more details. - -// A copy of the GPL 2.0 should have been included with the program. -// If not, see http://www.gnu.org/licenses/ - -// Official git repository and contact information can be found at -// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. - -#pragma once - -#include "Core/Host.h" - -class QtHost : public Host { -public: -}; diff --git a/Qt/QtMain.cpp b/Qt/QtMain.cpp index 05a4674894..bed85668a5 100644 --- a/Qt/QtMain.cpp +++ b/Qt/QtMain.cpp @@ -40,7 +40,6 @@ #include "Common/Profiler/Profiler.h" #include "QtMain.h" -#include "QtHost.h" #include "Qt/mainwindow.h" #include "Common/Data/Text/I18n.h" #include "Common/Thread/ThreadUtil.h" @@ -48,6 +47,7 @@ #include "Common/StringUtils.h" #include "Core/Config.h" #include "Core/ConfigValues.h" +#include "Core/Host.h" #include "Core/HW/Camera.h" #include "Core/Debugger/SymbolMap.h" @@ -863,8 +863,8 @@ int main(int argc, char *argv[]) g_mainWindow = new MainWindow(nullptr, g_Config.UseFullScreen()); g_mainWindow->show(); - if (host == nullptr) { - host = new QtHost(); + if (!host) { + host = new Host(); } // TODO: Support other backends than GL, like Vulkan, in the Qt backend. diff --git a/UI/HostTypes.h b/UI/HostTypes.h deleted file mode 100644 index 78bf45cd9b..0000000000 --- a/UI/HostTypes.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2014- PPSSPP Project. - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 2.0 or later versions. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License 2.0 for more details. - -// A copy of the GPL 2.0 should have been included with the program. -// If not, see http://www.gnu.org/licenses/ - -// Official git repository and contact information can be found at -// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. - -#pragma once - -#include "Core/Host.h" - -class NativeHost : public Host { -public: -}; diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 2a6e1719d0..ab45c8cae3 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -113,7 +113,6 @@ #include "UI/EmuScreen.h" #include "UI/GameInfoCache.h" #include "UI/GPUDriverTestScreen.h" -#include "UI/HostTypes.h" #include "UI/MiscScreens.h" #include "UI/MemStickScreen.h" #include "UI/OnScreenDisplay.h" @@ -454,7 +453,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch #if (defined(MOBILE_DEVICE) || !defined(USING_QT_UI)) && !PPSSPP_PLATFORM(UWP) if (host == nullptr) { - host = new NativeHost(); + host = new Host(); } #endif diff --git a/UI/UI.vcxproj b/UI/UI.vcxproj index 1e3e4da897..5c791f0512 100644 --- a/UI/UI.vcxproj +++ b/UI/UI.vcxproj @@ -84,7 +84,6 @@ - diff --git a/UI/UI.vcxproj.filters b/UI/UI.vcxproj.filters index a8cacd92f9..1d014a2f76 100644 --- a/UI/UI.vcxproj.filters +++ b/UI/UI.vcxproj.filters @@ -142,7 +142,6 @@ Screens - Screens diff --git a/UWP/PPSSPP_UWPMain.cpp b/UWP/PPSSPP_UWPMain.cpp index 86f5f01664..3d158288d7 100644 --- a/UWP/PPSSPP_UWPMain.cpp +++ b/UWP/PPSSPP_UWPMain.cpp @@ -26,6 +26,7 @@ #include "Common/System/NativeApp.h" #include "Common/System/Request.h" +#include "Core/Host.h" #include "Core/System.h" #include "Core/Loaders.h" #include "Core/Config.h" @@ -34,7 +35,6 @@ #include "Windows/XinputDevice.h" #include "NKCodeFromWindowsSystem.h" #include "XAudioSoundStream.h" -#include "UWPHost.h" #include "UWPUtil.h" #include "App.h" @@ -67,7 +67,7 @@ PPSSPP_UWPMain::PPSSPP_UWPMain(App ^app, const std::shared_ptrRegisterDeviceNotify(this); diff --git a/UWP/UI_UWP/UI_UWP.vcxproj b/UWP/UI_UWP/UI_UWP.vcxproj index be821a08ec..008e6f6c64 100644 --- a/UWP/UI_UWP/UI_UWP.vcxproj +++ b/UWP/UI_UWP/UI_UWP.vcxproj @@ -280,7 +280,6 @@ - diff --git a/UWP/UI_UWP/UI_UWP.vcxproj.filters b/UWP/UI_UWP/UI_UWP.vcxproj.filters index 7e97a9da89..355adc195f 100644 --- a/UWP/UI_UWP/UI_UWP.vcxproj.filters +++ b/UWP/UI_UWP/UI_UWP.vcxproj.filters @@ -51,7 +51,6 @@ - diff --git a/UWP/UWP.vcxproj b/UWP/UWP.vcxproj index 7a89e3c9f4..1144579f22 100644 --- a/UWP/UWP.vcxproj +++ b/UWP/UWP.vcxproj @@ -444,7 +444,6 @@ - @@ -461,7 +460,6 @@ Create - diff --git a/UWP/UWP.vcxproj.filters b/UWP/UWP.vcxproj.filters index b03d9592a8..5b08432ac5 100644 --- a/UWP/UWP.vcxproj.filters +++ b/UWP/UWP.vcxproj.filters @@ -76,7 +76,6 @@ - @@ -87,7 +86,6 @@ - @@ -492,6 +490,17 @@ Content\debugger\static\media + + + + + + + + + + + @@ -500,6 +509,7 @@ Content\debugger\static\js + diff --git a/UWP/UWPHost.cpp b/UWP/UWPHost.cpp deleted file mode 100644 index 13832901a4..0000000000 --- a/UWP/UWPHost.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2012- PPSSPP Project. - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 2.0 or later versions. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License 2.0 for more details. - -// A copy of the GPL 2.0 should have been included with the program. -// If not, see http://www.gnu.org/licenses/ - -// Official git repository and contact information can be found at -// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. - -#include "ppsspp_config.h" - -#include "UWP/UWPHost.h" - -UWPHost::UWPHost() { -} - -UWPHost::~UWPHost() { - -} diff --git a/UWP/UWPHost.h b/UWP/UWPHost.h deleted file mode 100644 index 14b93930d8..0000000000 --- a/UWP/UWPHost.h +++ /dev/null @@ -1,9 +0,0 @@ -#pragma once - -#include "Core/Host.h" - -class UWPHost : public Host { -public: - UWPHost(); - ~UWPHost(); -}; diff --git a/Windows/PPSSPP.vcxproj b/Windows/PPSSPP.vcxproj index 58acec5cc9..c99a146bd5 100644 --- a/Windows/PPSSPP.vcxproj +++ b/Windows/PPSSPP.vcxproj @@ -731,16 +731,6 @@ true true - - true - true - true - true - true - true - true - true - true true @@ -831,16 +821,6 @@ true true - - true - true - true - true - true - true - true - true - true true @@ -1273,16 +1253,6 @@ true true - - true - true - true - true - true - true - true - true - true true @@ -1393,16 +1363,6 @@ true true - - true - true - true - true - true - true - true - true - true true diff --git a/Windows/PPSSPP.vcxproj.filters b/Windows/PPSSPP.vcxproj.filters index 3407dc96f2..f45f9253c4 100644 --- a/Windows/PPSSPP.vcxproj.filters +++ b/Windows/PPSSPP.vcxproj.filters @@ -184,9 +184,6 @@ Windows\System - - Other Platforms\Qt - Windows\System @@ -244,9 +241,6 @@ Other Platforms\SDL - - Other Platforms\UWP - Other Platforms\UWP @@ -402,9 +396,6 @@ Windows\System - - Other Platforms\Qt - Windows\System @@ -508,9 +499,6 @@ Other Platforms\SDL - - Other Platforms\UWP - Other Platforms\UWP @@ -838,4 +826,4 @@ Other Platforms\SDL - + \ No newline at end of file diff --git a/headless/StubHost.h b/headless/StubHost.h index 2da7c55797..7c75b09c66 100644 --- a/headless/StubHost.h +++ b/headless/StubHost.h @@ -21,7 +21,6 @@ #include "Core/CoreParameter.h" #include "Core/Host.h" -#include "Core/Debugger/SymbolMap.h" class HeadlessHost : public Host { public: