prepare a ROM export dialog

This commit is contained in:
tildearrow 2024-08-12 23:20:08 -05:00
parent 7591b2ed6a
commit 1bdcbf95d3
3 changed files with 21 additions and 0 deletions

View file

@ -239,6 +239,10 @@ void FurnaceGUI::drawExportVGM(bool onWindow) {
} }
} }
void FurnaceGUI::drawExportROM(bool onWindow) {
}
void FurnaceGUI::drawExportZSM(bool onWindow) { void FurnaceGUI::drawExportZSM(bool onWindow) {
exitDisabledTimer=1; exitDisabledTimer=1;
@ -434,6 +438,10 @@ void FurnaceGUI::drawExport() {
drawExportVGM(true); drawExportVGM(true);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
if (ImGui::BeginTabItem(_("ROM"))) {
drawExportROM(true);
ImGui::EndTabItem();
}
int numZSMCompat=0; int numZSMCompat=0;
for (int i=0; i<e->song.systemLen; i++) { for (int i=0; i<e->song.systemLen; i++) {
if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++; if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++;
@ -488,6 +496,9 @@ void FurnaceGUI::drawExport() {
case GUI_EXPORT_VGM: case GUI_EXPORT_VGM:
drawExportVGM(true); drawExportVGM(true);
break; break;
case GUI_EXPORT_ROM:
drawExportROM(true);
break;
case GUI_EXPORT_ZSM: case GUI_EXPORT_ZSM:
drawExportZSM(true); drawExportZSM(true);
break; break;

View file

@ -4295,6 +4295,10 @@ bool FurnaceGUI::loop() {
drawExportVGM(); drawExportVGM();
ImGui::EndMenu(); ImGui::EndMenu();
} }
if (ImGui::BeginMenu(_("export ROM..."))) {
drawExportROM();
ImGui::EndMenu();
}
int numZSMCompat=0; int numZSMCompat=0;
for (int i=0; i<e->song.systemLen; i++) { for (int i=0; i<e->song.systemLen; i++) {
if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++; if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++;
@ -4349,6 +4353,10 @@ bool FurnaceGUI::loop() {
curExportType=GUI_EXPORT_VGM; curExportType=GUI_EXPORT_VGM;
displayExport=true; displayExport=true;
} }
if (ImGui::MenuItem(_("export ROM..."))) {
curExportType=GUI_EXPORT_ROM;
displayExport=true;
}
int numZSMCompat=0; int numZSMCompat=0;
for (int i=0; i<e->song.systemLen; i++) { for (int i=0; i<e->song.systemLen; i++) {
if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++; if ((e->song.system[i]==DIV_SYSTEM_VERA) || (e->song.system[i]==DIV_SYSTEM_YM2151)) numZSMCompat++;

View file

@ -651,6 +651,7 @@ enum FurnaceGUIExportTypes {
GUI_EXPORT_AUDIO=0, GUI_EXPORT_AUDIO=0,
GUI_EXPORT_VGM, GUI_EXPORT_VGM,
GUI_EXPORT_ROM,
GUI_EXPORT_ZSM, GUI_EXPORT_ZSM,
GUI_EXPORT_TIUNA, GUI_EXPORT_TIUNA,
GUI_EXPORT_CMD_STREAM, GUI_EXPORT_CMD_STREAM,
@ -2686,6 +2687,7 @@ class FurnaceGUI {
void drawExportAudio(bool onWindow=false); void drawExportAudio(bool onWindow=false);
void drawExportVGM(bool onWindow=false); void drawExportVGM(bool onWindow=false);
void drawExportROM(bool onWindow=false);
void drawExportZSM(bool onWindow=false); void drawExportZSM(bool onWindow=false);
void drawExportTiuna(bool onWindow=false); void drawExportTiuna(bool onWindow=false);
void drawExportAmigaVal(bool onWindow=false); void drawExportAmigaVal(bool onWindow=false);