From 0cab1ed550f3f892cf73348b0f46ca13dd8d581d Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Sun, 12 Apr 2026 11:12:44 +0200 Subject: [PATCH] Force dev console enabling --- Hogwarts Legacy/dllmain.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Hogwarts Legacy/dllmain.cpp b/Hogwarts Legacy/dllmain.cpp index fdfe708..2cc8d35 100644 --- a/Hogwarts Legacy/dllmain.cpp +++ b/Hogwarts Legacy/dllmain.cpp @@ -5,7 +5,7 @@ #include "HotkeysManager.h" #include "OSDManager.h" #include -#include +//#include // Screen informations static int screenWidth = GetSystemMetrics(SM_CXSCREEN); @@ -40,7 +40,6 @@ static bool fix_enabled = false; static bool Time_Dilation_fix_enabled = false; static bool GodMode_fix_enabled = false; static bool StealthMode_fix_enabled = false; -static bool console = true; static int worldFOVvalue = 0; static float cameraDistancevalue = 1.f; static int HUDOffsetValue = 0; @@ -55,7 +54,7 @@ static bool popup_Informations = false; // Plugin settings const char* SETTINGS_FILE = "pluginSettings.ini"; -const char* FIX_VERSION = "1.0.2"; +const char* FIX_VERSION = "1.0.2.1"; const char* FIX_INFORMATIONS = "This fix allows to:\n - Control FOV in game.\n - Camera distance.\n - Control HUD scaling.\n - Enable ultrawide.\n - Disable depth of field.\n - Disable chromatic aberrations.\n - Disable vignetting.\n - Disable fog.\n - Re enable console.\n - Enable cheats."; const char* DONATION_URL = "https://buymeacoffee.com/k4sh44"; @@ -127,7 +126,6 @@ static void LoadFixDLL() { // Ensure the Core dll is loaded only once SetFixes(GameFixes::TimeDilation, Time_Dilation_fix_enabled); SetFixes(GameFixes::GodMode, GodMode_fix_enabled); SetFixes(GameFixes::Stealth, StealthMode_fix_enabled); - SetFixes(GameFixes::DevConsole, console); } sliders[0] = { "In game additional FOV", "##FOVValue", SliderType::Int, &worldFOVvalue, -20, 70, GameSetting::FOV, SetValues }; sliders[1] = { "Camera distance (*)", "##CameraOffset", SliderType::Float, &cameraDistancevalue, 0, 4, GameSetting::CameraDistance, SetValues, "%.2f", "Value is a multiplier." }; @@ -145,10 +143,8 @@ static void SaveSettings() { pluginIniFile["1#General fix"].setComment(std::vector{ "The following sections are saved by plugin", "You should not need to modify them", " ", - "Controls if fix mod (globally) is enabled", - "Set Console to false if you don't want dev console to be enabled"}); + "Controls if fix mod (globally) is enabled" }); pluginIniFile["1#General fix"]["Enabled"] = fix_enabled; - pluginIniFile["1#General fix"]["Console"] = console; pluginIniFile["2#Individual fix"].setComment("Controls each fix individually"); pluginIniFile["2#Individual fix"]["FOV"] = fov_fix_enabled; pluginIniFile["2#Individual fix"]["Ultrawide"] = ultrawide_fix_enabled; @@ -176,7 +172,6 @@ static void LoadSettings() { try { pluginIniFile.load(SETTINGS_FILE); fix_enabled = pluginIniFile["1#General fix"]["Enabled"].as(); - console = pluginIniFile["1#General fix"]["Console"].as(); fov_fix_enabled = pluginIniFile["2#Individual fix"]["FOV"].as(); ultrawide_fix_enabled = pluginIniFile["2#Individual fix"]["Ultrawide"].as(); camera_fix_enabled = pluginIniFile["2#Individual fix"]["Camera"].as();