Struct viewer, fix build

Fix open check
This commit is contained in:
kotcrab 2024-11-15 20:27:23 +01:00
parent f9d7e426f8
commit 2c49cae1e2
3 changed files with 10 additions and 6 deletions

View File

@ -1,9 +1,11 @@
#pragma once
#include <string>
#include <atomic>
#include <mutex>
#include <vector>
#include <string>
#include <thread>
#include <unordered_map>
#include <vector>
struct GhidraSymbol {
u32 address = 0;

View File

@ -413,7 +413,7 @@ void ImDebugger::Frame(MIPSDebugInterface *mipsDebug) {
DrawHLEModules(cfg_);
if (&cfg_.structViewerOpen) {
if (cfg_.structViewerOpen) {
structViewer_.Draw(mipsDebug, &cfg_.structViewerOpen);
}
}

View File

@ -1,5 +1,6 @@
#include <regex>
#include <sstream>
#include <unordered_map>
#include "ext/imgui/imgui.h"
@ -369,8 +370,9 @@ void ImStructViewer::DrawNewWatchEntry() {
ImGui::InputText("Expression", newWatch_.expression, IM_ARRAYSIZE(newWatch_.expression));
ImGui::SameLine();
ImGui::Checkbox("Dynamic", &newWatch_.dynamic);
if (ImGui::IsItemHovered(ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_DelayNormal))
if (ImGui::IsItemHovered(ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_DelayNormal)) {
ImGui::SetTooltip("When checked the expression will be\nre-evaluated on each frame.");
}
ImGui::PopItemWidth();
@ -399,8 +401,8 @@ void ImStructViewer::DrawNewWatchEntry() {
newWatch_.dynamic = false;
newWatch_.error = "";
newWatch_.typeFilter.Clear();
// Not clearing the actual selected type on purpose here, user will have to reselect one anyway and maybe
// there is a chance they will reuse the current one
// Not clearing the actual selected type on purpose here, user will have to reselect one anyway and
// maybe there is a chance they will reuse the current one
}
}
if (!newWatch_.error.empty()) {