mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
GUI: fix log error if MIDI map file doesn't exist
This commit is contained in:
parent
12ade13580
commit
f1ee04393b
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ bool MIDIMap::read(String path) {
|
|||
int curLine=1;
|
||||
FILE* f=fopen(path.c_str(),"rb");
|
||||
if (f==NULL) {
|
||||
logE("error while loading MIDI mapping! %s\n",strerror(errno));
|
||||
if (errno!=ENOENT) {
|
||||
logE("error while loading MIDI mapping! %s\n",strerror(errno));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue