add a save function

and it loads on DefleMask!
This commit is contained in:
tildearrow 2021-12-09 02:38:55 -05:00
parent d395abe47f
commit daed339e07
2 changed files with 202 additions and 0 deletions

View file

@ -260,6 +260,13 @@ int main(int argc, char** argv) {
logE("could not open file!\n");
return 1;
}
/*FILE* outFile=fopen("testout.dmf","wb");
if (outFile!=NULL) {
if (!e.save(outFile)) {
logE("could not save file!\n");
}
fclose(outFile);
}*/
if (!e.init(outName)) {
logE("could not initialize engine!\n");
return 1;