Add Reload ROM and Close ROM options to File menu

This commit is contained in:
scawful
2023-10-22 16:18:18 -04:00
parent f5c6899d4d
commit 82cca80191
3 changed files with 41 additions and 22 deletions

View File

@@ -168,6 +168,11 @@ void MasterEditor::DrawFileMenu() {
MENU_ITEM2("Save", "Ctrl+S") { status_ = rom()->SaveToFile(backup_rom_); }
MENU_ITEM("Save As..") { save_as_menu = true; }
if (rom()->isLoaded()) {
MENU_ITEM("Reload") { status_ = rom()->Reload(); }
MENU_ITEM("Close") { status_ = rom()->Close(); }
}
ImGui::Separator();
if (ImGui::BeginMenu("Options")) {