From 1c7ac13ad6d2a97edcf57761653536533cff22da Mon Sep 17 00:00:00 2001 From: d22tny Date: Wed, 20 Nov 2024 20:02:41 +0200 Subject: [PATCH] tweak(extra-natives-five): correct indentation on preprocessor directives --- .../src/VisualSettingsNatives.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/code/components/extra-natives-five/src/VisualSettingsNatives.cpp b/code/components/extra-natives-five/src/VisualSettingsNatives.cpp index cc276c9ba5..b116ee7ec0 100644 --- a/code/components/extra-natives-five/src/VisualSettingsNatives.cpp +++ b/code/components/extra-natives-five/src/VisualSettingsNatives.cpp @@ -146,18 +146,18 @@ static InitFunction initFunction([]() static HookFunction hookFunction([]() { - #ifdef GTA_FIVE - g_visualSettings = hook::get_address(hook::get_pattern("48 83 25 ? ? ? ? 00 48 8D ? ? ? ? ? E8 ? ? ? ? E8", 11)); - #elif IS_RDR3 - g_visualSettings = hook::get_address(hook::get_pattern("48 89 2D ? ? ? ? E8 ? ? ? ? E8 ? ? ? ? 48 8D 0D", -11)); - #endif +#ifdef GTA_FIVE + g_visualSettings = hook::get_address(hook::get_pattern("48 83 25 ? ? ? ? 00 48 8D ? ? ? ? ? E8 ? ? ? ? E8", 11)); +#elif IS_RDR3 + g_visualSettings = hook::get_address(hook::get_pattern("48 89 2D ? ? ? ? E8 ? ? ? ? E8 ? ? ? ? 48 8D 0D", -11)); +#endif { - #ifdef GTA_FIVE - auto location = (char*)hook::get_call(hook::get_pattern("48 83 25 ? ? ? ? 00 48 8D ? ? ? ? ? E8 ? ? ? ? E8", 15)); - #elif IS_RDR3 - auto location = (char*)hook::get_call(hook::get_pattern("48 89 2D ? ? ? ? E8 ? ? ? ? E8 ? ? ? ? 48 8D 0D", 7)); - #endif +#ifdef GTA_FIVE + auto location = (char*)hook::get_call(hook::get_pattern("48 83 25 ? ? ? ? 00 48 8D ? ? ? ? ? E8 ? ? ? ? E8", 15)); +#elif IS_RDR3 + auto location = (char*)hook::get_call(hook::get_pattern("48 89 2D ? ? ? ? E8 ? ? ? ? E8 ? ? ? ? 48 8D 0D", 7)); +#endif hook::set_call(&g_origLoadVisualSettingsDat, location + 0x12); hook::call(location + 0x12, LoadVisualSettingsDatStub);