diff --git a/Hogwarts Legacy/dllmain.cpp b/Hogwarts Legacy/dllmain.cpp index 250d5c2..fdfe708 100644 --- a/Hogwarts Legacy/dllmain.cpp +++ b/Hogwarts Legacy/dllmain.cpp @@ -15,7 +15,6 @@ static float aspectRatio = (float)screenWidth / screenHeight; // Core game dll functions declarations typedef void (*SetBoolFn)(bool, bool); typedef void (*SetFixesFn)(GameFixes, bool); -typedef void (*SetIntFn)(int); typedef void (*SetFloatFn)(GameSetting, float); static HMODULE fixLib = nullptr; @@ -57,7 +56,7 @@ static bool popup_Informations = false; // Plugin settings const char* SETTINGS_FILE = "pluginSettings.ini"; const char* FIX_VERSION = "1.0.2"; -const char* FIX_INFORMATIONS = "This fix allows to:\n - Control FOV in game.\n - Camera distance.\n - Enable ultrawide.\n - Disable depth of field.\n - Disable chromatic aberrations.\n - Disable vignetting.\n - Disable fog.\n - Re enable console."; +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"; // Prepare arrays of checkboxes for ImGui @@ -141,8 +140,7 @@ static void LoadFixDLL() { // Ensure the Core dll is loaded only once } // Settings functions -static void SaveSettings() -{ +static void SaveSettings() { ini::IniFile pluginIniFile; pluginIniFile["1#General fix"].setComment(std::vector{ "The following sections are saved by plugin", "You should not need to modify them", @@ -173,8 +171,7 @@ static void SaveSettings() pluginIniFile.save(SETTINGS_FILE); } -static void LoadSettings() -{ +static void LoadSettings() { ini::IniFile pluginIniFile; try { pluginIniFile.load(SETTINGS_FILE); @@ -231,16 +228,14 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime) { show_log_overlay = true; // Fix information } - if (popup_Informations) - { + if (popup_Informations) { ImGui::Begin("Informations", &popup_Informations, ImGuiWindowFlags_AlwaysAutoResize); ImGui::Text("Version : %s", FIX_VERSION); ImGui::Text(FIX_INFORMATIONS); ImGui::End(); } - if (show_log_overlay) - { + if (show_log_overlay) { ImGui::Begin("Game log", &show_log_overlay, ImGuiWindowFlags_AlwaysAutoResize); ImGui::TextUnformatted(log_content.c_str()); ImGui::End();