unload rom assets on file -> close

This commit is contained in:
scawful
2024-02-01 01:05:57 -05:00
parent 8d2cd60b5f
commit 427b7f6f41
5 changed files with 43 additions and 39 deletions

View File

@@ -343,7 +343,10 @@ void MasterEditor::DrawFileMenu() {
if (rom()->is_loaded()) {
MENU_ITEM("Reload") { status_ = rom()->Reload(); }
MENU_ITEM("Close") { status_ = rom()->Close(); }
MENU_ITEM("Close") {
status_ = rom()->Close();
rom_assets_loaded_ = false;
}
}
ImGui::Separator();