Test getters functions before calling them

This commit is contained in:
2025-09-03 14:36:30 +02:00
parent ee49ed1f54
commit fad7c70afd

View File

@@ -305,7 +305,7 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
ImGui::BeginChild("INFOSHeader", ImVec2(480, 80), true); ImGui::BeginChild("INFOSHeader", ImVec2(480, 80), true);
if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) { if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::SetCursorPos(ImVec2(5, 30)); ImGui::SetCursorPos(ImVec2(5, 30));
if (GetFOVIn && GetCompensadedFOV && GetFOVOut) if (GetFOVIn && GetCompensadedFOV && GetFOVOut) // Test functions in case Core dll is not ready when called
ImGui::Text("FOV In: %.2f, Compensated : %.2f, Out : %.2f", GetFOVIn(), GetCompensadedFOV(), GetFOVOut()); ImGui::Text("FOV In: %.2f, Compensated : %.2f, Out : %.2f", GetFOVIn(), GetCompensadedFOV(), GetFOVOut());
} }
ImGui::EndChild(); ImGui::EndChild();