From dca263462b02969912dae8a9dee245af823e6b40 Mon Sep 17 00:00:00 2001 From: cdozdil Date: Wed, 4 Sep 2024 17:08:10 +0300 Subject: [PATCH] log messages --- OptiScaler/dllmain.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/OptiScaler/dllmain.cpp b/OptiScaler/dllmain.cpp index 6aef3d98..2f2ab803 100644 --- a/OptiScaler/dllmain.cpp +++ b/OptiScaler/dllmain.cpp @@ -845,12 +845,16 @@ static VkResult hkvkEnumerateDeviceExtensionProperties(VkPhysicalDevice physical auto result = o_vkEnumerateDeviceExtensionProperties(physicalDevice, pLayerName, pPropertyCount, pProperties); if (result != VK_SUCCESS) + { + LOG_ERROR("o_vkEnumerateDeviceExtensionProperties({0}, {1}) result: {2:X}", pLayerName, count, (UINT)result); return result; + } if (pLayerName == nullptr && pProperties == nullptr && count == 0) { *pPropertyCount += 2; vkEnumerateDeviceExtensionPropertiesCount = *pPropertyCount; + LOG_TRACE("hkvkEnumerateDeviceExtensionProperties({0}) count: {1}", pLayerName, vkEnumerateDeviceExtensionPropertiesCount); return result; } @@ -1132,11 +1136,11 @@ static bool IsRunningOnWine() { LOG_FUNC(); - HMODULE ntdll = GetModuleHandle(L"ntdll.dll"); + HMODULE ntdll = GetModuleHandle(L"dxgi.dll"); if (!ntdll) { - spdlog::warn("IsRunningOnWine Not running on NT!?!"); + LOG_WARN("IsRunningOnWine Not running on NT!?!"); return true; } @@ -1148,7 +1152,7 @@ static bool IsRunningOnWine() return true; } - spdlog::warn("IsRunningOnWine Wine not detected"); + LOG_WARN("IsRunningOnWine Wine not detected"); return false; }