mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +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;
|
int curLine=1;
|
||||||
FILE* f=fopen(path.c_str(),"rb");
|
FILE* f=fopen(path.c_str(),"rb");
|
||||||
if (f==NULL) {
|
if (f==NULL) {
|
||||||
|
if (errno!=ENOENT) {
|
||||||
logE("error while loading MIDI mapping! %s\n",strerror(errno));
|
logE("error while loading MIDI mapping! %s\n",strerror(errno));
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue