Skip to content

Commit

Permalink
Reduce log spam for known issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Oct 5, 2024
1 parent 0b644c0 commit 0866235
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/input/hid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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))
{
Expand Down
2 changes: 1 addition & 1 deletion src/render/dxgi/dxgi_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 0866235

Please sign in to comment.