mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-15 07:07:09 +08:00
Fixed Debug Globals displaying value as a 64-bit integer and not a 32-bit integer. (#1761)
Resolves #1760.
This commit is contained in:
@ -185,7 +185,7 @@ namespace big
|
||||
if (auto ptr = get_global_ptr(global_test))
|
||||
{
|
||||
ImGui::SetNextItemWidth(200.f);
|
||||
ImGui::InputScalar("Value", ImGuiDataType_S64, ptr);
|
||||
ImGui::InputScalar("Value", ImGuiDataType_S32, ptr);
|
||||
}
|
||||
else
|
||||
ImGui::Text("INVALID_GLOBAL_READ");
|
||||
@ -208,7 +208,7 @@ namespace big
|
||||
for (auto pair : globals)
|
||||
{
|
||||
if (auto ptr = get_global_ptr(pair.second))
|
||||
ImGui::Selectable(std::format("{}", *ptr).c_str(), false, ImGuiSelectableFlags_Disabled);
|
||||
ImGui::Selectable(std::format("{}", (std::int32_t)*ptr).c_str(), false, ImGuiSelectableFlags_Disabled);
|
||||
else
|
||||
ImGui::Selectable("INVALID_GLOBAL_READ", false, ImGuiSelectableFlags_Disabled);
|
||||
}
|
||||
|
Reference in New Issue
Block a user