From eea076912769f30fddebda2c88fa155ccafcb9cf Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Sun, 7 Sep 2025 22:44:15 +0200 Subject: [PATCH] Remove unnecessary test. Add signature address test --- Cronos The New Dawn/dllmain.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Cronos The New Dawn/dllmain.cpp b/Cronos The New Dawn/dllmain.cpp index e1cdaee..e3626a6 100644 --- a/Cronos The New Dawn/dllmain.cpp +++ b/Cronos The New Dawn/dllmain.cpp @@ -270,7 +270,7 @@ static void AspectFixEnabled(bool fix_enabled) { logger->info("Aspect fix enabled"); FOVFixEnabled(fix_enabled); } - if (!fix_enabled) { + if (!fix_enabled && Aspectaddress) { Memory::RestoreBytes(Aspectaddress); logger->info("Aspect ratio fix disabled"); if (!g_fov_fix_enabled) @@ -378,14 +378,8 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID) { if (reason == DLL_PROCESS_ATTACH) { - if (reason == DLL_PROCESS_ATTACH) - { - if (reason == DLL_PROCESS_ATTACH) - { - InitializeLogger(); - logger->info("Plugin {} loaded.", PLUGIN_NAME); - } - } + InitializeLogger(); + logger->info("Plugin {} loaded.", PLUGIN_NAME); } else if (reason == DLL_PROCESS_DETACH) {