Added Starfield. Removed the need of ASI loader.
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
#include <reshade.hpp>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
#include <Windows.h>
|
||||
|
||||
// Core game dll functions declarations
|
||||
typedef void (*SetBoolFn)(bool,bool);
|
||||
@@ -35,18 +32,19 @@ const char* WORLD_FOV_FIX_SETTING = "WorldFOVFIX=";
|
||||
const char* WORLD_FOV_SETTING = "WorldFOV=";
|
||||
const char* FIX_VERSION = "1.0.2";
|
||||
const char* FIX_INFORMATIONS = "This fix allows to :\r\n- Change FOV in game.\r\nThis will not affect inventory,store or bench tool.";
|
||||
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("DeadSpace2023Core.asi"); // ou EmpireOfTheAntsCore.dll si tu gardes le .dll
|
||||
fixLib = LoadLibraryA("DeadSpace2023Core.dll"); // ou EmpireOfTheAntsCore.dll si tu gardes le .dll
|
||||
if (!fixLib) {
|
||||
// Optionnel: message d'erreur ou fallback
|
||||
MessageBoxA(nullptr, "Impossible to load game core dll", "Erreur", MB_OK);
|
||||
return;
|
||||
}
|
||||
|
||||
SetFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFixEnabled");
|
||||
SetFOVFixEnabled = (SetBoolFn)GetProcAddress(fixLib, "SetFOVFixEnabled");
|
||||
SetFOV = (SetIntFn)GetProcAddress(fixLib, "SetFOV");
|
||||
@@ -170,8 +168,12 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
||||
|
||||
// Fix status
|
||||
ImGui::SetCursorPos(ImVec2(10, 200));
|
||||
ImGui::Text("=============== Fix informations ===============");
|
||||
ImGui::Text("FOV In: %.2f, Out : %.2f", 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