Removed junk files. Removed unnecessary code and comments. Reorganized projects.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user