Test getters functions before calling them
This commit is contained in:
@@ -305,7 +305,7 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
|
||||
ImGui::BeginChild("INFOSHeader", ImVec2(480, 80), true);
|
||||
if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||
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::EndChild();
|
||||
|
||||
Reference in New Issue
Block a user