backend-infra-engineer: Release v0.3.2 snapshot
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#ifndef YAZE_APP_EDITOR_CODE_MEMORY_EDITOR_H
|
||||
#define YAZE_APP_EDITOR_CODE_MEMORY_EDITOR_H
|
||||
|
||||
#include "app/core/platform/file_dialog.h"
|
||||
#include "app/gui/input.h"
|
||||
#include "util/file_util.h"
|
||||
#include "absl/container/flat_hash_map.h"
|
||||
#include "app/editor/editor.h"
|
||||
#include "app/gui/core/input.h"
|
||||
#include "app/rom.h"
|
||||
#include "app/snes.h"
|
||||
#include "imgui/imgui.h"
|
||||
@@ -19,13 +21,15 @@ struct MemoryEditorWithDiffChecker {
|
||||
explicit MemoryEditorWithDiffChecker(Rom* rom = nullptr) : rom_(rom) {}
|
||||
|
||||
void Update(bool &show_memory_editor) {
|
||||
DrawToolbar();
|
||||
ImGui::Separator();
|
||||
static MemoryEditor mem_edit;
|
||||
static MemoryEditor comp_edit;
|
||||
static bool show_compare_rom = false;
|
||||
static Rom comparison_rom;
|
||||
ImGui::Begin("Hex Editor", &show_memory_editor);
|
||||
if (ImGui::Button("Compare Rom")) {
|
||||
auto file_name = core::FileDialogWrapper::ShowOpenFileDialog();
|
||||
auto file_name = util::FileDialogWrapper::ShowOpenFileDialog();
|
||||
PRINT_IF_ERROR(comparison_rom.LoadFromFile(file_name));
|
||||
show_compare_rom = true;
|
||||
}
|
||||
@@ -66,7 +70,24 @@ struct MemoryEditorWithDiffChecker {
|
||||
Rom* rom() const { return rom_; }
|
||||
|
||||
private:
|
||||
void DrawToolbar();
|
||||
void DrawJumpToAddressPopup();
|
||||
void DrawSearchPopup();
|
||||
void DrawBookmarksPopup();
|
||||
|
||||
Rom* rom_;
|
||||
|
||||
// Toolbar state
|
||||
char jump_address_[16] = "0x000000";
|
||||
char search_pattern_[256] = "";
|
||||
uint32_t current_address_ = 0;
|
||||
|
||||
struct Bookmark {
|
||||
uint32_t address;
|
||||
std::string name;
|
||||
std::string description;
|
||||
};
|
||||
std::vector<Bookmark> bookmarks_;
|
||||
};
|
||||
|
||||
} // namespace editor
|
||||
|
||||
Reference in New Issue
Block a user