ROM and Compression library updates
Remove Compress and Decompress from ROM Move Editor parent class to its own file Move 65816 editor constants to widgets Update compression_test and snes_palette_test Start version constant classes (experimental) Move SetupROM for editors to load renderer
This commit is contained in:
@@ -60,6 +60,11 @@ bool BeginCentered(const char *name) {
|
||||
void MasterEditor::SetupScreen(std::shared_ptr<SDL_Renderer> renderer) {
|
||||
sdl_renderer_ = renderer;
|
||||
rom_.SetupRenderer(renderer);
|
||||
overworld_editor_.SetupROM(rom_);
|
||||
graphics_editor_.SetupROM(rom_);
|
||||
screen_editor_.SetupROM(rom_);
|
||||
palette_editor_.SetupROM(rom_);
|
||||
music_editor_.SetupROM(rom_);
|
||||
}
|
||||
|
||||
void MasterEditor::UpdateScreen() {
|
||||
@@ -90,11 +95,6 @@ void MasterEditor::DrawFileDialog() {
|
||||
std::string filePathName =
|
||||
ImGuiFileDialog::Instance()->GetFilePathName();
|
||||
status_ = rom_.LoadFromFile(filePathName);
|
||||
overworld_editor_.SetupROM(rom_);
|
||||
graphics_editor_.SetupROM(rom_);
|
||||
screen_editor_.SetupROM(rom_);
|
||||
palette_editor_.SetupROM(rom_);
|
||||
music_editor_.SetupROM(rom_);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user