Fixes removal
This commit is contained in:
@@ -55,15 +55,13 @@ const char* SETTINGS_FILE = "PluginSettings.ini";
|
||||
const char* GENERAL_FIX_SETTING = "GeneralFIX=";
|
||||
const char* WORLD_FOV_FIX_SETTING = "WorldFOVFIX=";
|
||||
const char* FPS_FIX_SETTING = "FPSFIX=";
|
||||
const char* RESOLUTION_FIX_SETTING = "ResolutionFIX=";
|
||||
const char* ASPECT_FIX_SETTING = "AspectFIX=";
|
||||
const char* DOF_FIX_SETTING = "DOFFIX=";
|
||||
const char* CA_FIX_SETTING = "ChromaticAberrationsFIX=";
|
||||
const char* VIGNETTING_FIX_SETTING = "VignettingFIX=";
|
||||
const char* FOG_FIX_SETTING = "FogFIX=";
|
||||
const char* WORLD_FOV_SETTING = "WorldFOV=";
|
||||
const char* FIX_VERSION = "1.0.4";
|
||||
const char* FIX_INFORMATIONS = "This fix allows to:\n - Control FOV in game.\n - Unlock ultrawide resolutions.\n - Remove pillar boxing.\n - Unlock FPS.\n - Disable depth of field.\n - Disable chromatic aberrations.\n - Disable vignetting.\n - Disable FOG.\n - Enable dev console.";
|
||||
const char* FIX_VERSION = "1.0.5";
|
||||
const char* FIX_INFORMATIONS = "This fix allows to:\n - Control FOV in game.\n - Unlock FPS.\n - Disable depth of field.\n - Disable chromatic aberrations.\n - Disable vignetting.\n - Disable FOG.\n - Enable dev console.";
|
||||
const char* DONATION_URL = "https://buymeacoffee.com/k4sh44";
|
||||
|
||||
// Scaling factor based vertical resolution
|
||||
@@ -86,8 +84,6 @@ static void LoadFixDLL()
|
||||
SetFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFixEnabled");
|
||||
SetFOVFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFOVFixEnabled");
|
||||
SetFPSFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFPSFixEnabled");
|
||||
SetResolutionFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetResolutionFixEnabled");
|
||||
SetAspectRatioFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetAspectRatioFixEnabled");
|
||||
SetDOFFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetDOFFixEnabled");
|
||||
SetCAFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetCAFixEnabled");
|
||||
SetVignettingFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetVignettingFixEnabled");
|
||||
@@ -102,8 +98,6 @@ static void LoadFixDLL()
|
||||
if (SetFOV) SetFOV(worldFOVvalue);
|
||||
if (SetFOVFixEnabled) SetFOVFixEnabled(fov_fix_enabled, true);
|
||||
if (SetFPSFixEnabled) SetFPSFixEnabled(FPS_fix_enabled, true);
|
||||
if (SetResolutionFixEnabled) SetResolutionFixEnabled(Resolution_fix_enabled, true);
|
||||
if (SetAspectRatioFixEnabled) SetAspectRatioFixEnabled(Aspect_fix_enabled, true);
|
||||
if (SetDOFFixEnabled) SetDOFFixEnabled(DOF_fix_enabled, true);
|
||||
if (SetCAFixEnabled) SetCAFixEnabled(CA_fix_enabled, true);
|
||||
if (SetVignettingFixEnabled) SetVignettingFixEnabled(Vignetting_fix_enabled, true);
|
||||
@@ -121,8 +115,6 @@ static void SaveSettings()
|
||||
file << GENERAL_FIX_SETTING << (fix_enabled ? "1" : "0") << "\n";
|
||||
file << WORLD_FOV_FIX_SETTING << (fov_fix_enabled ? "1" : "0") << "\n";
|
||||
file << FPS_FIX_SETTING << (FPS_fix_enabled ? "1" : "0") << "\n";
|
||||
file << RESOLUTION_FIX_SETTING << (Resolution_fix_enabled ? "1" : "0") << "\n";
|
||||
file << ASPECT_FIX_SETTING << (Aspect_fix_enabled ? "1" : "0") << "\n";
|
||||
file << DOF_FIX_SETTING << (DOF_fix_enabled ? "1" : "0") << "\n";
|
||||
file << CA_FIX_SETTING << (CA_fix_enabled ? "1" : "0") << "\n";
|
||||
file << VIGNETTING_FIX_SETTING << (Vignetting_fix_enabled ? "1" : "0") << "\n";
|
||||
@@ -155,16 +147,6 @@ static void LoadSettings()
|
||||
std::string val = line.substr(strlen(FPS_FIX_SETTING));
|
||||
FPS_fix_enabled = (val == "1" || val == "true");
|
||||
}
|
||||
else if (line.find(RESOLUTION_FIX_SETTING) == 0)
|
||||
{
|
||||
std::string val = line.substr(strlen(RESOLUTION_FIX_SETTING));
|
||||
Resolution_fix_enabled = (val == "1" || val == "true");
|
||||
}
|
||||
else if (line.find(ASPECT_FIX_SETTING) == 0)
|
||||
{
|
||||
std::string val = line.substr(strlen(ASPECT_FIX_SETTING));
|
||||
Aspect_fix_enabled = (val == "1" || val == "true");
|
||||
}
|
||||
else if (line.find(DOF_FIX_SETTING) == 0)
|
||||
{
|
||||
std::string val = line.substr(strlen(DOF_FIX_SETTING));
|
||||
@@ -259,11 +241,6 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox("Vignetting", &Vignetting_fix_enabled)) {
|
||||
if (SetVignettingFixEnabled) SetVignettingFixEnabled(Vignetting_fix_enabled, false);
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox("Fog", &Fog_fix_enabled)) {
|
||||
if (SetFogFixEnabled) SetFogFixEnabled(Fog_fix_enabled, false);
|
||||
SaveSettings();
|
||||
@@ -277,21 +254,6 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
||||
}
|
||||
|
||||
ImGui::TableSetColumnIndex(1);
|
||||
if (ImGui::Checkbox("Aspect ratio", &Aspect_fix_enabled)) {
|
||||
if (SetAspectRatioFixEnabled) SetAspectRatioFixEnabled(Aspect_fix_enabled, false);
|
||||
SaveSettings();
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text("This fix is intended for ultrawide only.");
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox("Resolution", &Resolution_fix_enabled)) {
|
||||
if (SetResolutionFixEnabled) SetResolutionFixEnabled(Resolution_fix_enabled, false);
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox("Depth of field", &DOF_fix_enabled)) {
|
||||
if (SetDOFFixEnabled) SetDOFFixEnabled(DOF_fix_enabled, false);
|
||||
SaveSettings();
|
||||
@@ -301,6 +263,11 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
||||
if (SetCAFixEnabled) SetCAFixEnabled(CA_fix_enabled, false);
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox("Vignetting", &Vignetting_fix_enabled)) {
|
||||
if (SetVignettingFixEnabled) SetVignettingFixEnabled(Vignetting_fix_enabled, false);
|
||||
SaveSettings();
|
||||
}
|
||||
ImGui::EndTable();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user