Skip to content

Commit

Permalink
Remove references to old mem editor
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jun 8, 2024
1 parent c4c7880 commit 46bbb06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 767 deletions.
1 change: 0 additions & 1 deletion platforms/desktop-shared/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <math.h>
#include "imgui/imgui.h"
#include "imgui/imgui_memory_editor.h"
#include "imgui/fonts/RobotoMedium.h"
#include "nfd/nfd.h"
#include "config.h"
Expand Down
17 changes: 6 additions & 11 deletions platforms/desktop-shared/gui_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <math.h>
#include "imgui/imgui.h"
#include "imgui/imgui_memory_editor.h"
#include "imgui/memory_editor.h"
#include "config.h"
#include "emu.h"
Expand All @@ -46,8 +45,7 @@ struct DisassmeblerLine
std::string symbol;
};

static MemoryEditor mem_edit;
static MemEditor gear_mem_edit;
static MemEditor mem_edit;
static ImVec4 cyan = ImVec4(0.1f,0.9f,0.9f,1.0f);
static ImVec4 magenta = ImVec4(1.0f,0.502f,0.957f,1.0f);
static ImVec4 yellow = ImVec4(1.0f,0.90f,0.05f,1.0f);
Expand Down Expand Up @@ -234,42 +232,39 @@ static void debug_window_memory(void)
if (ImGui::BeginTabItem("BIOS"))
{
ImGui::PushFont(gui_default_font);
//mem_edit.DrawContents(memory->GetBios(), 0x2000, 0);
//gear_mem_edit.Draw(memory->GetBios(), 0x2000, 0);
gear_mem_edit.Draw(memory->GetBios(), 0x2000, 0);
mem_edit.Draw(memory->GetBios(), 0x2000, 0);
ImGui::PopFont();
ImGui::EndTabItem();
}

if (ImGui::BeginTabItem("RAM"))
{
ImGui::PushFont(gui_default_font);
//mem_edit.DrawContents(memory->GetRam(), 0x400, 0x7000);
gear_mem_edit.Draw(memory->GetRam(), 0x400, 0x7000);
mem_edit.Draw(memory->GetRam(), 0x400, 0x7000);
ImGui::PopFont();
ImGui::EndTabItem();
}

if (ImGui::BeginTabItem("SGM RAM"))
{
ImGui::PushFont(gui_default_font);
mem_edit.DrawContents(memory->GetSGMRam(), 0x8000, 0x0000);
mem_edit.Draw(memory->GetSGMRam(), 0x8000, 0x0000);
ImGui::PopFont();
ImGui::EndTabItem();
}

if (IsValidPointer(cart->GetROM()) && ImGui::BeginTabItem("ROM"))
{
ImGui::PushFont(gui_default_font);
mem_edit.DrawContents(cart->GetROM(), cart->GetROMSize(), 0x0000);
mem_edit.Draw(cart->GetROM(), cart->GetROMSize(), 0x0000);
ImGui::PopFont();
ImGui::EndTabItem();
}

if (ImGui::BeginTabItem("VRAM"))
{
ImGui::PushFont(gui_default_font);
mem_edit.DrawContents(video->GetVRAM(), 0x4000, 0);
mem_edit.Draw(video->GetVRAM(), 0x4000, 0);
ImGui::PopFont();
ImGui::EndTabItem();
}
Expand Down
Loading

0 comments on commit 46bbb06

Please sign in to comment.