Removed junk function
This commit is contained in:
@@ -50,10 +50,9 @@ const char* DONATION_URL = "https://www.paypal.com/donate/?business=W92C47N3WZZZ
|
||||
static void LoadFixDLL()
|
||||
{
|
||||
if (fixLib) return;
|
||||
fixLib = GetModuleHandleA("TLOUCore.asi"); // ou EmpireOfTheAntsCore.dll si tu gardes le .dll
|
||||
fixLib = GetModuleHandleA("TLOUCore.asi");
|
||||
|
||||
if (!fixLib) {
|
||||
// Optionnel: message d'erreur ou fallback
|
||||
MessageBoxA(nullptr, "Impossible to laod game core dll", "Erreur", MB_OK);
|
||||
return;
|
||||
}
|
||||
@@ -68,7 +67,7 @@ static void LoadFixDLL()
|
||||
GetFOVIn = (GetFloatFn)GetProcAddress(fixLib, "GetFOVIn");
|
||||
GetFOVOut = (GetFloatFn)GetProcAddress(fixLib, "GetFOVOut");;
|
||||
|
||||
// Appliquer les valeurs initiales chargées
|
||||
// Apply initial settings loaded from ini file
|
||||
if (SetFOV) SetFOV(worldFOVvalue);
|
||||
if (SetCamera) SetCamera(cameraDistancevalue);
|
||||
if (SetSharpness) SetSharpness(sharpnessvalue);
|
||||
@@ -252,15 +251,6 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
||||
ImGui::Text("FOV In: %.2f, Out : %.2f", GetFOVIn(), GetFOVOut());
|
||||
}
|
||||
|
||||
DWORD WINAPI MainThread(LPVOID)
|
||||
{
|
||||
// Tu peux ensuite réactiver LoadSettings/LoadFixDLL ici
|
||||
LoadSettings();
|
||||
reshade::register_overlay("The Last Of Us : Part I", &on_overlay_draw);
|
||||
LoadFixDLL();
|
||||
|
||||
return 0;
|
||||
}
|
||||
// Main dll intrance
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD ul_reason_for_call, LPVOID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user