Added Starfield. Removed the need of ASI loader.
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include <reshade.hpp>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <Windows.h>
|
||||
|
||||
// Core game dll functions declarations
|
||||
typedef void (*SetBoolFn)(bool, bool);
|
||||
@@ -47,17 +46,18 @@ const char* HUD_LEFT_SETTING = "HUDLeft=";
|
||||
const char* HUD_RIGHT_SETTING = "HUDRight=";
|
||||
const char* FIX_VERSION = "1.0.4";
|
||||
const char* FIX_INFORMATIONS = "This fix will allow to:\r\n -Modify FOV in game (acts as an additional FOV).\r\n -Set HUD safe zone (21/9,16/9 ...).";
|
||||
const char* DONATION_URL = "https://www.paypal.com/donate/?business=W92C47N3WZZZG&no_recurring=0¤cy_code=EUR";
|
||||
const char* DONATION_URL = "https://buymeacoffee.com/k4sh44";
|
||||
|
||||
// Load and unload game core dll functions /!\ necessary
|
||||
static void LoadFixDLL()
|
||||
{
|
||||
if (fixLib) return;
|
||||
fixLib = GetModuleHandleA("DaysGoneCore.asi"); // ou EmpireOfTheAntsCore.dll si tu gardes le .dll
|
||||
fixLib = LoadLibraryA("DaysGoneCore.dll"); // ou EmpireOfTheAntsCore.dll si tu gardes le .dll
|
||||
if (!fixLib) {
|
||||
MessageBoxA(nullptr, "Impossible to load game core dll", "Erreur", MB_OK);
|
||||
return;
|
||||
}
|
||||
|
||||
SetFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFixEnabled");
|
||||
SetFOVFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFOVFixEnabled");
|
||||
SetHUDFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetHUDFixEnabled");
|
||||
@@ -268,9 +268,12 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
||||
|
||||
// Fix status
|
||||
ImGui::SetCursorPos(ImVec2(10, 360));
|
||||
ImGui::Text("=============== Fix informations ===============");
|
||||
if (GetFOVIn && GetFOVOut)
|
||||
ImGui::BeginChild("INFOSHeader", ImVec2(480, 80), true); // true = border
|
||||
if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||
ImGui::SetCursorPos(ImVec2(5, 30));
|
||||
ImGui::Text("FOV In: %.2f, Out : %.2f", GetFOVIn(), GetFOVOut());
|
||||
}
|
||||
ImGui::EndChild();
|
||||
}
|
||||
|
||||
// Main dll intrance
|
||||
|
||||
Reference in New Issue
Block a user