Save ROM with modified palettes, backup system

This commit is contained in:
scawful
2023-05-15 09:28:34 -05:00
parent 304c39d3cd
commit 02b1adb6ab
4 changed files with 114 additions and 70 deletions

View File

@@ -160,14 +160,14 @@ void MasterEditor::DrawYazeMenu() {
END_MENU_BAR()
}
void MasterEditor::DrawFileMenu() const {
void MasterEditor::DrawFileMenu() {
if (ImGui::BeginMenu("File")) {
if (ImGui::MenuItem("Open", "Ctrl+O")) {
ImGuiFileDialog::Instance()->OpenDialog("ChooseFileDlgKey", "Open ROM",
".sfc,.smc", ".");
}
MENU_ITEM2("Save", "Ctrl+S") {}
MENU_ITEM2("Save", "Ctrl+S") { status_ = rom_.SaveToFile(true); }
MENU_ITEM("Save As..") {}
ImGui::Separator();

View File

@@ -38,7 +38,7 @@ class MasterEditor {
void DrawInfoPopup();
void DrawYazeMenu();
void DrawFileMenu() const;
void DrawFileMenu();
void DrawEditMenu();
void DrawViewMenu();
void DrawHelpMenu();