From 086623531b7da79ccab9cbaa23de9694ab127dcc Mon Sep 17 00:00:00 2001 From: Kaldaien Date: Sat, 5 Oct 2024 09:17:31 -0400 Subject: [PATCH] Reduce log spam for known issues --- src/input/hid.cpp | 12 ++++++------ src/render/dxgi/dxgi_util.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/input/hid.cpp b/src/input/hid.cpp index 6ef0b1f0f..dfd67a108 100644 --- a/src/input/hid.cpp +++ b/src/input/hid.cpp @@ -1169,7 +1169,7 @@ ReadFile_Detour (HANDLE hFile, default: { SK_RunOnce ( - SK_LOGi0 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, + SK_LOGi1 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, __FILEW__, __LINE__) ); } break; } @@ -1250,7 +1250,7 @@ ReadFileEx_Detour (HANDLE hFile, default: { SK_RunOnce ( - SK_LOGi0 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, + SK_LOGi1 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, __FILEW__, __LINE__) ); } break; } @@ -1717,7 +1717,7 @@ GetOverlappedResultEx_Detour (HANDLE hFile, default: { SK_RunOnce ( - SK_LOGi0 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, + SK_LOGi1 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, __FILEW__, __LINE__) ); } break; } @@ -1850,7 +1850,7 @@ GetOverlappedResult_Detour (HANDLE hFile, default: { SK_RunOnce ( - SK_LOGi0 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, + SK_LOGi1 (L"Unexpected Device Type (%d) [%ws:%d]", dev_file_type, __FILEW__, __LINE__) ); } break; } @@ -2089,9 +2089,9 @@ void SK_Input_HookHID (void) { if (! config.input.gamepad.hook_hid) - return; + return; - static volatile LONG hooked = FALSE; + static volatile LONG hooked = FALSE; if (! InterlockedCompareExchange (&hooked, TRUE, FALSE)) { diff --git a/src/render/dxgi/dxgi_util.cpp b/src/render/dxgi/dxgi_util.cpp index 872ed2d57..db52e6585 100644 --- a/src/render/dxgi/dxgi_util.cpp +++ b/src/render/dxgi/dxgi_util.cpp @@ -1263,7 +1263,7 @@ SK_D3D11_BltCopySurface ( ID3D11Texture2D *pSrcTex, _Return (false); } - SK_ReleaseAssert (DstX == 0 && DstY == 0); + SK_RunOnce (SK_ReleaseAssert (DstX == 0 && DstY == 0)); if ( DirectX::IsCompressed (srcTexDesc.Format) || DirectX::IsCompressed (dstTexDesc.Format) ||