Removed junk files. Removed unnecessary code and comments. Reorganized projects.

This commit is contained in:
2025-07-30 14:26:54 +02:00
parent 731218faa7
commit 7a232427dd
13 changed files with 423 additions and 27 deletions

View File

@@ -67,7 +67,7 @@ static void LoadFixDLL()
GetFOVIn = (GetFloatFn)GetProcAddress(fixLib, "GetFOVIn");
GetFOVOut = (GetFloatFn)GetProcAddress(fixLib, "GetFOVOut");;
// Appliquer les valeurs initiales chargées
// Apply initial values loaded from ini settings
if (SetFOV) SetFOV(worldFOVvalue);
if (SetCamera) SetCamera(cameraDistancevalue);
if (SetSharpness) SetSharpness(sharpnessvalue);
@@ -77,7 +77,7 @@ static void LoadFixDLL()
if (SetFixEnabled) SetFixEnabled(fix_enabled, true);
}
// Addon functions
// Save settings to ini file
static void SaveSettings()
{
std::ofstream file(SETTINGS_FILE);
@@ -95,6 +95,7 @@ static void SaveSettings()
}
}
// Load settings from ini file
static void LoadSettings()
{
std::ifstream file(SETTINGS_FILE);
@@ -255,15 +256,6 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
ImGui::EndChild();
}
DWORD WINAPI MainThread(LPVOID)
{
// Tu peux ensuite réactiver LoadSettings/LoadFixDLL ici
LoadSettings();
reshade::register_overlay("The Last Of Us : Part II", &on_overlay_draw);
LoadFixDLL();
return 0;
}
// Main dll intrance
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD ul_reason_for_call, LPVOID)
{