diff --git a/DeathStranding2/dllmain.cpp b/DeathStranding2/dllmain.cpp index f81aa0b..21e895d 100644 --- a/DeathStranding2/dllmain.cpp +++ b/DeathStranding2/dllmain.cpp @@ -5,7 +5,6 @@ // Constants const std::string PLUGIN_NAME = "DeathStranding2"; const std::string PLUGIN_LOG = PLUGIN_NAME + ".log"; -constexpr ULONGLONG DEFAULT_DELAY_BETWEEN_TICK = 500; // Used for retrieving Game resolution // Logger std::shared_ptr logger; @@ -47,7 +46,6 @@ static void UltraWideFixEnabled(); static void CameraFixEnabled(); extern "C" __declspec(dllexport) void SetFixEnabled(bool enabled, bool init) { - //return; g_fix_enabled = enabled; if (!AOBScanDone) { // Decima Engine logger->info("--------------- AOB scan started ---------------"); @@ -84,6 +82,7 @@ extern "C" __declspec(dllexport) void SetFixesEnabled(GameFixes fix, bool enable if (fix == GameFixes::FOV) { g_fov_fix_enabled = enabled; FOVFixEnabled(); } if (fix == GameFixes::UltraWide) { g_ultrawide_fix_enabled = enabled; UltraWideFixEnabled(); } if (fix == GameFixes::Camera) { g_camera_fix_enabled = enabled; CameraFixEnabled(); } + if (fix == GameFixes::None) logger->info("------------------ User inputs ------------------"); } extern "C" __declspec(dllexport) void SetValues(GameSetting setting, float value) { @@ -127,7 +126,7 @@ static void UltraWideFixEnabled() { if (g_fix_enabled && g_ultrawide_fix_enabled) { if (!UWHook) { std::thread([]() { - Sleep(5000); + Sleep(5000); // Necessary here to avoid CTD on launch UWHook = safetyhook::create_mid(Ultrawideaddress, [](SafetyHookContext& ctx) { ctx.xmm0.f32[0] = g_AspectRatio;