enforce asset limits

This commit is contained in:
tildearrow 2022-05-14 17:51:05 -05:00
parent 2fc637494f
commit 06ec22d6a5
3 changed files with 84 additions and 30 deletions

View file

@ -3161,8 +3161,11 @@ bool FurnaceGUI::loop() {
break;
}
case GUI_FILE_WAVE_OPEN:
e->addWaveFromFile(copyOfName.c_str());
MARK_MODIFIED;
if (!e->addWaveFromFile(copyOfName.c_str())) {
showError("cannot load wavetable! ("+e->getLastError()+")");
} else {
MARK_MODIFIED;
}
break;
case GUI_FILE_EXPORT_VGM: {
SafeWriter* w=e->saveVGM(willExport,vgmExportLoop,vgmExportVersion);