Skip to content

Commit

Permalink
Struct viewer, try fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kotcrab committed Nov 12, 2024
1 parent e21c471 commit f51ec24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Common/GhidraClient.h
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
8 changes: 5 additions & 3 deletions UI/ImDebugger/ImStructViewer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <regex>
#include <sstream>
#include <unordered_map>

#include "ext/imgui/imgui.h"

Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit f51ec24

Please sign in to comment.