logs improvements

This commit is contained in:
2025-11-27 10:47:15 +01:00
parent 2cdf478b0b
commit 560d33cbcd

View File

@@ -219,7 +219,7 @@ extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init)
}
}
if (g_fix_enabled)
if (init && g_fix_enabled)
logger->info("-------------- Fixes initialisation -------------");
if (CinematicsModeaddress) GetCinematicsMode();
if (CamCorderaddress) GetCamcorderState();
@@ -324,7 +324,7 @@ static void UltraWideFixEnabled() {
if (!CinematicsUltrawideHook) {
CinematicsUltrawideHook = safetyhook::create_mid(CinematicsUltrawideaddress + 0x8,
[](SafetyHookContext& ctx) {
if (g_CamCorderState == 0) // 0 - Camcorder down (if not down ultrawide must not be enabled or it will mess HUD & FOV)
if (b_IsCinematicMode && g_CamCorderState == 0) // 0 - Camcorder down (if not down ultrawide must not be enabled or it will mess HUD & FOV)
ctx.rax = *(uint32_t*)&aspectRatio;
});
}