aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/latencyflex.cpp
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-09 01:02:11 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-09 01:02:11 +0200
commit44a6e0230002ae8a55167453a3ff3283a59b1859 (patch)
treea6e4f8eff0f4b2f3723a9ae097d4f242a78fd278 /NorthstarDLL/latencyflex.cpp
parentd2907aa522d56a4baacec1c17426f7d6f1fae3a2 (diff)
downloadNorthstarLauncher-44a6e0230002ae8a55167453a3ff3283a59b1859.tar.gz
NorthstarLauncher-44a6e0230002ae8a55167453a3ff3283a59b1859.zip
Add clang-format ignores for AUTOHOOKrefactor-format-ignore-autohook
The proper solution would be to have some way in clang-format config file that specifies that our `AUTOHOOK` formatting should be considered correct but that takes more investigation and simply ignoring formatting in AUTOHOOK macros is the lower hanging fruit.
Diffstat (limited to 'NorthstarDLL/latencyflex.cpp')
-rw-r--r--NorthstarDLL/latencyflex.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/latencyflex.cpp b/NorthstarDLL/latencyflex.cpp
index 7b5a8ebf..aab3f9fe 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,, ())
+// clang-format on
{
if (Cvar_r_latencyflex->GetBool() && m_winelfx_WaitAndBeginFrame)
m_winelfx_WaitAndBeginFrame();