aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/latencyflex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/latencyflex.cpp')
-rw-r--r--NorthstarDLL/latencyflex.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/NorthstarDLL/latencyflex.cpp b/NorthstarDLL/latencyflex.cpp
index 7b5a8ebf..620e031a 100644
--- a/NorthstarDLL/latencyflex.cpp
+++ b/NorthstarDLL/latencyflex.cpp
@@ -7,8 +7,10 @@ ConVar* Cvar_r_latencyflex;
void (*m_winelfx_WaitAndBeginFrame)();
+// clang-format off
AUTOHOOK(OnRenderStart, client.dll + 0x1952C0,
-void,, ())
+void, __fastcall, ())
+// clang-format on
{
if (Cvar_r_latencyflex->GetBool() && m_winelfx_WaitAndBeginFrame)
m_winelfx_WaitAndBeginFrame();
@@ -24,11 +26,11 @@ ON_DLL_LOAD_CLIENT_RELIESON("client.dll", LatencyFlex, ConVar, (CModule module))
HMODULE pLfxModule;
if (pLfxModule = LoadLibraryA("latencyflex_layer.dll"))
- m_winelfx_WaitAndBeginFrame = reinterpret_cast<void (*)()>(
- reinterpret_cast<void*>(GetProcAddress(pLfxModule, "lfx_WaitAndBeginFrame")));
+ m_winelfx_WaitAndBeginFrame =
+ reinterpret_cast<void (*)()>(reinterpret_cast<void*>(GetProcAddress(pLfxModule, "lfx_WaitAndBeginFrame")));
else if (pLfxModule = LoadLibraryA("latencyflex_wine.dll"))
- m_winelfx_WaitAndBeginFrame = reinterpret_cast<void (*)()>(
- reinterpret_cast<void*>(GetProcAddress(pLfxModule, "winelfx_WaitAndBeginFrame")));
+ m_winelfx_WaitAndBeginFrame =
+ reinterpret_cast<void (*)()>(reinterpret_cast<void*>(GetProcAddress(pLfxModule, "winelfx_WaitAndBeginFrame")));
else
{
spdlog::info("Unable to load LatencyFleX library, LatencyFleX disabled.");