Get rid of some more backward Common/Core dependencies

This commit is contained in:
Henrik Rydgård
2025-08-06 00:04:39 +02:00
parent 05b82d6ce4
commit 5e05a6d0ac
7 changed files with 7 additions and 7 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
#include <cstring>
#include <iostream>
#include "Core/Config.h"
#include "Common/System/System.h"
#include "Common/System/Display.h"
#include "Common/Log.h"
@@ -171,7 +170,7 @@ VkResult VulkanContext::CreateInstance(const CreateInfo &info) {
#endif
#endif
if ((flags_ & VulkanInitFlags::VALIDATE) && g_Config.sCustomDriver.empty()) {
if ((flags_ & VulkanInitFlags::VALIDATE) && info.customDriver.empty()) {
if (IsInstanceExtensionAvailable(VK_EXT_DEBUG_UTILS_EXTENSION_NAME)) {
// Enable the validation layers
for (size_t i = 0; i < ARRAY_SIZE(validationLayers); i++) {
+1
View File
@@ -184,6 +184,7 @@ public:
const char *app_name;
int app_ver;
VulkanInitFlags flags;
std::string customDriver;
};
VkResult CreateInstance(const CreateInfo &info);
+1 -1
View File
@@ -1,5 +1,4 @@
#include "ppsspp_config.h"
#include "Common/Net/Resolve.h"
#include <cstdio>
#include <cstdlib>
@@ -13,6 +12,7 @@
#include "Common/StringUtils.h"
#include "Common/Data/Encoding/Utf8.h"
#include "Common/Net/SocketCompat.h"
#include "Common/Net/Resolve.h"
#ifndef HTTPS_NOT_AVAILABLE
#include "ext/naett/naett.h"
+1 -2
View File
@@ -7,12 +7,11 @@
#include "Common/UI/UI.h"
#include "Common/UI/View.h"
#include "Common/UI/ViewGroup.h"
#include "Common/Data/Collections/TinySet.h"
#include "Common/Log.h"
#include "Common/TimeUtil.h"
#include "Core/KeyMap.h"
void Screen::focusChanged(ScreenFocusChange focusChange) {
const char *eventName = "";
switch (focusChange) {
+1 -2
View File
@@ -14,8 +14,7 @@
#include "Common/Math/lin/matrix4x4.h"
#include "Common/Input/InputState.h"
#include "Common/Input/KeyCodes.h"
// The deps below need to be inverted, or we need to move this file (probably better)
#include "Core/HLE/sceDisplay.h"
#include "Core/HLE/sceCtrl.h"
+1
View File
@@ -72,6 +72,7 @@ bool SDLVulkanGraphicsContext::Init(SDL_Window *&window, int x, int y, int w, in
info.app_name = "PPSSPP";
info.app_ver = gitVer.ToInteger();
info.flags = FlagsFromConfig();
info.customDriver = g_Config.sCustomDriver;
if (VK_SUCCESS != vulkan_->CreateInstance(info)) {
*error_message = vulkan_->InitError();
delete vulkan_;
+1
View File
@@ -71,6 +71,7 @@ bool AndroidVulkanContext::InitAPI() {
info.app_name = "PPSSPP";
info.app_ver = gitVer.ToInteger();
info.flags = FlagsFromConfig();
info.customDriver = g_Config.sCustomDriver;
if (!g_Vulkan->CreateInstanceAndDevice(info)) {
delete g_Vulkan;
g_Vulkan = nullptr;