From 68bb847a70deef90e18cbcc708cb25d85b9874f2 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Thu, 12 Dec 2024 01:56:19 +0300 Subject: [PATCH] changed spoofed driver version --- OptiScaler/Config.h | 2 +- OptiScaler/OptiScaler.vcxproj | 4 ++-- OptiScaler/dllmain.cpp | 19 ++++++++----------- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/OptiScaler/Config.h b/OptiScaler/Config.h index 6457fc2d..47766a61 100644 --- a/OptiScaler/Config.h +++ b/OptiScaler/Config.h @@ -240,7 +240,7 @@ public: // spoofing bool skipSpoofing = false; - + // fsr3.x std::vector fsr3xVersionNames; std::vector fsr3xVersionIds; diff --git a/OptiScaler/OptiScaler.vcxproj b/OptiScaler/OptiScaler.vcxproj index 7f3301c6..13884427 100644 --- a/OptiScaler/OptiScaler.vcxproj +++ b/OptiScaler/OptiScaler.vcxproj @@ -81,8 +81,8 @@ $(SolutionDir)external\vulkan\include;$(SolutionDir)external\nvngx_dlss_sdk;$(SolutionDir)external\xess\inc\xess;$(SolutionDir)external\FidelityFX-SDK\ffx-api\include\ffx_api;$(SolutionDir)external\simpleini;$(SolutionDir)external\unordered_dense\include;$(SolutionDir)external\spdlog\include;$(SolutionDir)external\freetype;$(IncludePath) $(ProjectDir)fsr2\lib;$(ProjectDir)fsr2_212\lib;$(ProjectDir)fsr31\lib;$(ProjectDir)vulkan;$(ProjectDir)d3dx;$(ProjectDir)detours;$(SolutionDir)external\xess\lib;$(SolutionDir)external\freetype;$(LibraryPath) - winhttp - G:\DOOM Eternal\ + version + D:\Games\Indiana Jones and the Great Circle\ .\x64\Debug .dll diff --git a/OptiScaler/dllmain.cpp b/OptiScaler/dllmain.cpp index df82a7a5..9739caee 100644 --- a/OptiScaler/dllmain.cpp +++ b/OptiScaler/dllmain.cpp @@ -89,9 +89,9 @@ inline std::vector dxgiNames = { "dxgi.dll", "dxgi", }; inline std::vector dxgiNamesW = { L"dxgi.dll", L"dxgi", }; inline std::vector vkNames = { "vulkan-1.dll", "vulkan-1", }; inline std::vector vkNamesW = { L"vulkan-1.dll", L"vulkan-1", }; -inline std::vector overlayNames = { "eosovh-win32-shipping.dll", "eosovh-win32-shipping", "eosovh-win64-shipping.dll", "eosovh-win64-shipping", +inline std::vector overlayNames = { "eosovh-win32-shipping.dll", "eosovh-win32-shipping", "eosovh-win64-shipping.dll", "eosovh-win64-shipping", "gameoverlayrenderer64", "gameoverlayrenderer64.dll", "gameoverlayrenderer", "gameoverlayrenderer.dll" }; -inline std::vector overlayNamesW = { L"eosovh-win32-shipping.dll", L"eosovh-win32-shipping", L"eosovh-win64-shipping.dll", L"eosovh-win64-shipping", +inline std::vector overlayNamesW = { L"eosovh-win32-shipping.dll", L"eosovh-win32-shipping", L"eosovh-win64-shipping.dll", L"eosovh-win64-shipping", L"gameoverlayrenderer64", L"gameoverlayrenderer64.dll", L"gameoverlayrenderer", L"gameoverlayrenderer.dll" }; static int loadCount = 0; @@ -965,7 +965,7 @@ static void hkvkGetPhysicalDeviceProperties(VkPhysicalDevice physical_device, Vk std::strcpy(properties->deviceName, deviceName.c_str()); properties->vendorID = 0x10de; properties->deviceID = 0x2684; - properties->driverVersion = VK_MAKE_API_VERSION(559, 0, 0, 0); + properties->driverVersion = VK_MAKE_API_VERSION(999, 99, 0, 0); } else { @@ -983,7 +983,7 @@ static void hkvkGetPhysicalDeviceProperties2(VkPhysicalDevice phys_dev, VkPhysic std::strcpy(properties2->properties.deviceName, deviceName.c_str()); properties2->properties.vendorID = 0x10de; properties2->properties.deviceID = 0x2684; - properties2->properties.driverVersion = VK_MAKE_API_VERSION(559, 0, 0, 0); + properties2->properties.driverVersion = VK_MAKE_API_VERSION(999, 99, 0, 0); auto next = (VkDummyProps*)properties2->pNext; @@ -994,7 +994,7 @@ static void hkvkGetPhysicalDeviceProperties2(VkPhysicalDevice phys_dev, VkPhysic auto ddp = (VkPhysicalDeviceDriverProperties*)(void*)next; ddp->driverID = VK_DRIVER_ID_NVIDIA_PROPRIETARY; std::strcpy(ddp->driverName, "NVIDIA"); - std::strcpy(ddp->driverInfo, "559.0"); + std::strcpy(ddp->driverInfo, "999.99"); } next = (VkDummyProps*)next->pNext; @@ -1016,7 +1016,7 @@ static void hkvkGetPhysicalDeviceProperties2KHR(VkPhysicalDevice phys_dev, VkPhy std::strcpy(properties2->properties.deviceName, deviceName.c_str()); properties2->properties.vendorID = 0x10de; properties2->properties.deviceID = 0x2684; - properties2->properties.driverVersion = VK_MAKE_API_VERSION(559, 0, 0, 0); + properties2->properties.driverVersion = VK_MAKE_API_VERSION(999, 99, 0, 0); auto next = (VkDummyProps*)properties2->pNext; @@ -1027,7 +1027,7 @@ static void hkvkGetPhysicalDeviceProperties2KHR(VkPhysicalDevice phys_dev, VkPhy auto ddp = (VkPhysicalDeviceDriverProperties*)(void*)next; ddp->driverID = VK_DRIVER_ID_NVIDIA_PROPRIETARY; std::strcpy(ddp->driverName, "NVIDIA"); - std::strcpy(ddp->driverInfo, "559.0"); + std::strcpy(ddp->driverInfo, "999.99"); } next = (VkDummyProps*)next->pNext; @@ -1104,9 +1104,6 @@ static VkResult hkvkCreateDevice(VkPhysicalDevice physicalDevice, VkDeviceCreate { LOG_DEBUG("adding {0}", pCreateInfo->ppEnabledExtensionNames[i]); newExtensionList.push_back(pCreateInfo->ppEnabledExtensionNames[i]); - - if (std::strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME) == 0) - bVK_KHR_get_memory_requirements2 = true; } } @@ -1137,7 +1134,7 @@ static VkResult hkvkEnumerateDeviceExtensionProperties(VkPhysicalDevice physical LOG_FUNC(); auto count = *pPropertyCount; - + if (pProperties == nullptr) count = 0;