From ba6c800f350715fef08b66c8d7899583ac56239f Mon Sep 17 00:00:00 2001 From: Emmanuel AYME Date: Sat, 29 Nov 2025 22:11:14 +0100 Subject: [PATCH] Add console enabling option. Add addon descriptions. Version bump --- EternalStrands/dllmain.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/EternalStrands/dllmain.cpp b/EternalStrands/dllmain.cpp index 29d2069..caa3218 100644 --- a/EternalStrands/dllmain.cpp +++ b/EternalStrands/dllmain.cpp @@ -38,6 +38,8 @@ static bool Vignetting_fix_enabled = false; static bool Fog_fix_enabled = false; static bool VolumetricFog_fix_enabled = false; static bool fix_enabled = false; +static bool console = true; + static int worldFOVvalue = 0; static float cameraDistance = 1.f; @@ -48,10 +50,14 @@ static std::string log_content; // Plugin settings const std::string 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 - Enable ultrawide.\n - Control camera distance.\n - Disable depth of field.\n - Disable chromatic aberrations.\n - Disable vignetting.\n - Disable fog & volumetric fog.\n - Re enable dev console."; const char* DONATION_URL = "https://buymeacoffee.com/k4sh44"; +// Reshade addon name and description +extern "C" __declspec(dllexport) const char* NAME = "Eternal Strands"; +extern "C" __declspec(dllexport) const char* DESCRIPTION = "Reshade addon to re-enable console, enable ultrawide, control FOV, camera distance and some effects."; + // Scaling factor based on screen resolution float scale = 1.f; @@ -88,7 +94,7 @@ static void LoadFixDLL() SetFixesEnabled(GameFixes::Vignetting, Vignetting_fix_enabled); SetFixesEnabled(GameFixes::Fog, Fog_fix_enabled); SetFixesEnabled(GameFixes::VolumetricFog, VolumetricFog_fix_enabled); - SetFixesEnabled(GameFixes::DevConsole, true); + SetFixesEnabled(GameFixes::DevConsole, console); } } } @@ -100,8 +106,10 @@ 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"}); + "Controls if fix mod (globally) is enabled", + "Set Console to false if you don't want dev console to be 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; @@ -124,6 +132,7 @@ 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();