Add SaveOverworldMaps public fn and experiment flag

This commit is contained in:
scawful
2024-01-25 13:45:47 -05:00
parent b8d9a3c5cb
commit 1ef1c3ff84
4 changed files with 16 additions and 14 deletions

View File

@@ -341,6 +341,7 @@ void MasterEditor::DrawFileMenu() {
Checkbox("Draw Dungeon Room Graphics",
&mutable_flags()->kDrawDungeonRoomGraphics);
Checkbox("Save Dungeon Maps", &mutable_flags()->kSaveDungeonMaps);
Checkbox("Save Overworld Maps", &mutable_flags()->kSaveOverworldMaps);
ImGui::EndMenu();
}
@@ -518,6 +519,11 @@ void MasterEditor::SaveRom() {
status_ = screen_editor_.SaveDungeonMaps();
PRINT_IF_ERROR(status_);
}
if (flags()->kSaveOverworldMaps) {
status_ = overworld_editor_.SaveOverworldMaps();
PRINT_IF_ERROR(status_);
}
status_ = rom()->SaveToFile(backup_rom_);
}