Add console enabling option. Add addon descriptions. Version bump

This commit is contained in:
2025-11-29 22:11:14 +01:00
parent dc6c17b843
commit ba6c800f35

View File

@@ -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<std::string>{ "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<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>();