From 44a6e0230002ae8a55167453a3ff3283a59b1859 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Fri, 9 Sep 2022 01:02:11 +0200 Subject: Add clang-format ignores for 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. --- NorthstarDLL/printmaps.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NorthstarDLL/printmaps.cpp') diff --git a/NorthstarDLL/printmaps.cpp b/NorthstarDLL/printmaps.cpp index 82ba8d5e..84a7ced9 100644 --- a/NorthstarDLL/printmaps.cpp +++ b/NorthstarDLL/printmaps.cpp @@ -110,8 +110,10 @@ void RefreshMapList() } } +// clang-format off AUTOHOOK(_Host_Map_f_CompletionFunc, engine.dll + 0x161AE0, int, __fastcall, (const char const* cmdname, const char const* partial, char commands[COMMAND_COMPLETION_MAXITEMS][COMMAND_COMPLETION_ITEM_LENGTH])) +// clang-format on { // don't update our map list often from this func, only refresh every 10 seconds so we avoid constantly reading fs static double flLastAutocompleteRefresh = -999; -- cgit v1.2.3