housekeeping
This commit is contained in:
@@ -114,13 +114,6 @@ void GfxGroupEditor::DrawBlocksetViewer(bool sheet_only) {
|
|||||||
for (int i = 0; i < 8; i++) {
|
for (int i = 0; i < 8; i++) {
|
||||||
int sheet_id = rom()->main_blockset_ids[selected_blockset_][i];
|
int sheet_id = rom()->main_blockset_ids[selected_blockset_][i];
|
||||||
auto &sheet = *rom()->bitmap_manager()[sheet_id];
|
auto &sheet = *rom()->bitmap_manager()[sheet_id];
|
||||||
// if (sheet_id != last_sheet_id_) {
|
|
||||||
// last_sheet_id_ = sheet_id;
|
|
||||||
// auto palette_group = rom()->palette_group("ow_main");
|
|
||||||
// auto palette = palette_group[preview_palette_id_];
|
|
||||||
// sheet.ApplyPalette(palette);
|
|
||||||
// rom()->UpdateBitmap(&sheet);
|
|
||||||
// }
|
|
||||||
gui::BitmapCanvasPipeline(blockset_canvas_, sheet, 256, 0x10 * 0x04,
|
gui::BitmapCanvasPipeline(blockset_canvas_, sheet, 256, 0x10 * 0x04,
|
||||||
0x20, true, false, 22);
|
0x20, true, false, 22);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -264,6 +264,10 @@ void Emulator::HandleEvents() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Emulator::RenderBreakpointList() {
|
void Emulator::RenderBreakpointList() {
|
||||||
|
if (ImGui::Button("Set SPC PC")) {
|
||||||
|
snes_.apu().spc700().PC = 0xFFEF;
|
||||||
|
}
|
||||||
|
Separator();
|
||||||
Text("Breakpoints");
|
Text("Breakpoints");
|
||||||
Separator();
|
Separator();
|
||||||
static char breakpoint_input[10] = "";
|
static char breakpoint_input[10] = "";
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ absl::Status Rom::LoadFromFile(const absl::string_view& filename,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get file size and resize rom_data_
|
// Get file size and resize rom_data_
|
||||||
size_ = std::filesystem::file_size(filename);
|
size_ = std::filesystem::file_size(filename_);
|
||||||
rom_data_.resize(size_);
|
rom_data_.resize(size_);
|
||||||
|
|
||||||
// Read file into rom_data_
|
// Read file into rom_data_
|
||||||
|
|||||||
Reference in New Issue
Block a user