From 23bebc5270bfd5a149aeb8bb5a3a2dd4433bd5e1 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Thu, 1 Jun 2023 00:05:06 +0200 Subject: VideoBackends:Vulkan: Allow loading custom drivers on Android ... using libadrenotools --- Source/Core/VideoCommon/VideoConfig.cpp | 2 ++ Source/Core/VideoCommon/VideoConfig.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'Source/Core/VideoCommon') diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 38ee680bf3..9284c8171f 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -172,6 +172,8 @@ void VideoConfig::Refresh() bPerfQueriesEnable = Config::Get(Config::GFX_PERF_QUERIES_ENABLE); bGraphicMods = Config::Get(Config::GFX_MODS_ENABLE); + + customDriverLibraryName = Config::Get(Config::GFX_DRIVER_LIB_NAME); } void VideoConfig::VerifyValidity() diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index a479276e6c..33f2a06ebe 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -214,6 +214,9 @@ struct VideoConfig final int iShaderCompilerThreads = 0; int iShaderPrecompilerThreads = 0; + // Loading custom drivers on Android + std::string customDriverLibraryName; + // Static config per API // TODO: Move this out of VideoConfig struct -- cgit v1.2.3