Remove unnecessary test. Add signature address test

This commit is contained in:
2025-09-07 22:44:15 +02:00
parent dea585ba2f
commit eea0769127

View File

@@ -270,7 +270,7 @@ static void AspectFixEnabled(bool fix_enabled) {
logger->info("Aspect fix enabled"); logger->info("Aspect fix enabled");
FOVFixEnabled(fix_enabled); FOVFixEnabled(fix_enabled);
} }
if (!fix_enabled) { if (!fix_enabled && Aspectaddress) {
Memory::RestoreBytes(Aspectaddress); Memory::RestoreBytes(Aspectaddress);
logger->info("Aspect ratio fix disabled"); logger->info("Aspect ratio fix disabled");
if (!g_fov_fix_enabled) 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);
if (reason == DLL_PROCESS_ATTACH)
{
InitializeLogger();
logger->info("Plugin {} loaded.", PLUGIN_NAME);
}
}
} }
else if (reason == DLL_PROCESS_DETACH) else if (reason == DLL_PROCESS_DETACH)
{ {