VGM export skeleton DOES NOT WORK

VGM export not there yet. please don't use it.
This commit is contained in:
tildearrow 2022-01-23 21:50:45 -05:00
parent f42a326693
commit 9fe0efd63a
2 changed files with 163 additions and 1 deletions

View file

@ -4032,6 +4032,22 @@ bool FurnaceGUI::loop() {
}
ImGui::EndMenu();
}
if (ImGui::MenuItem("DON'T CLICK ME")) {
SafeWriter* w=e->saveVGM();
if (w!=NULL) {
FILE* f=fopen("test.vgm","wb");
if (f!=NULL) {
fwrite(w->getFinalBuf(),1,w->size(),f);
fclose(f);
} else {
showError("FAK");
}
w->finish();
delete w;
} else {
showError("could not write VGM. dang it.");
}
}
ImGui::Separator();
if (ImGui::BeginMenu("add system...")) {
sysAddOption(DIV_SYSTEM_GENESIS);