parent
06dfb7e803
commit
8ab97a959c
8 changed files with 35 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "engine.h"
|
||||
#include "instrument.h"
|
||||
#include "../ta-log.h"
|
||||
#include "../fileutils.h"
|
||||
|
||||
void DivInstrument::putInsData(SafeWriter* w) {
|
||||
w->write("INST",4);
|
||||
|
|
@ -159,7 +160,7 @@ bool DivInstrument::save(const char* path) {
|
|||
|
||||
putInsData(w);
|
||||
|
||||
FILE* outFile=fopen(path,"wb");
|
||||
FILE* outFile=ps_fopen(path,"wb");
|
||||
if (outFile==NULL) {
|
||||
logE("could not save instrument: %s!\n",strerror(errno));
|
||||
w->finish();
|
||||
|
|
@ -171,4 +172,4 @@ bool DivInstrument::save(const char* path) {
|
|||
fclose(outFile);
|
||||
w->finish();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue