diff options
author | Max Horn | 2005-04-13 18:36:55 +0000 |
---|---|---|
committer | Max Horn | 2005-04-13 18:36:55 +0000 |
commit | 839c8add38ba710654cbe304493521584e663dd7 (patch) | |
tree | b9e5975f1ec1911e14045e0c197fe13e5880464b /sound/softsynth | |
parent | a5993b21129b133bdbd570a3f540caf44c0c3958 (diff) | |
download | scummvm-rg350-839c8add38ba710654cbe304493521584e663dd7.tar.gz scummvm-rg350-839c8add38ba710654cbe304493521584e663dd7.tar.bz2 scummvm-rg350-839c8add38ba710654cbe304493521584e663dd7.zip |
Get rid of errno; add some (optional) error checking facilities to SaveFile classes (they are ugly, and to simple, but better than nothing)
svn-id: r17589
Diffstat (limited to 'sound/softsynth')
-rw-r--r-- | sound/softsynth/mt32/synth.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/softsynth/mt32/synth.cpp b/sound/softsynth/mt32/synth.cpp index 289db62553..892258b7a4 100644 --- a/sound/softsynth/mt32/synth.cpp +++ b/sound/softsynth/mt32/synth.cpp @@ -22,7 +22,6 @@ #include <math.h> #include <string.h> #include <stdlib.h> -#include <errno.h> #include "mt32emu.h" @@ -395,7 +394,7 @@ bool Synth::open(SynthProperties &useProp) { if (!loadControlROM("CM32L_CONTROL.ROM")) { if (!loadControlROM("MT32_CONTROL.ROM")) { printDebug("Init Error - Missing or invalid MT32_CONTROL.ROM"); - report(ReportType_errorControlROM, &errno); + report(ReportType_errorControlROM, NULL); return false; } } @@ -410,7 +409,7 @@ bool Synth::open(SynthProperties &useProp) { if (!loadPCMROM("CM32L_PCM.ROM")) { if (!loadPCMROM("MT32_PCM.ROM")) { printDebug("Init Error - Missing MT32_PCM.ROM"); - report(ReportType_errorPCMROM, &errno); + report(ReportType_errorPCMROM, NULL); return false; } } |