Force dev console enabling

This commit is contained in:
2026-04-12 11:12:44 +02:00
parent 1f6cc0668f
commit 0cab1ed550

View File

@@ -5,7 +5,7 @@
#include "HotkeysManager.h"
#include "OSDManager.h"
#include <chrono>
#include <Windows.h>
//#include <Windows.h>
// 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<std::string>{ "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<bool>();
console = pluginIniFile["1#General fix"]["Console"].as<bool>();
fov_fix_enabled = pluginIniFile["2#Individual fix"]["FOV"].as<bool>();
ultrawide_fix_enabled = pluginIniFile["2#Individual fix"]["Ultrawide"].as<bool>();
camera_fix_enabled = pluginIniFile["2#Individual fix"]["Camera"].as<bool>();