[Scummvm-cvs-logs] CVS: scummvm/sound/softsynth/mt32 synth.cpp,1.2,1.3
Max Horn
fingolfin at users.sourceforge.net
Wed Apr 13 11:39:07 CEST 2005
Update of /cvsroot/scummvm/scummvm/sound/softsynth/mt32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12854/sound/softsynth/mt32
Modified Files:
synth.cpp
Log Message:
Get rid of errno; add some (optional) error checking facilities to SaveFile classes (they are ugly, and to simple, but better than nothing)
Index: synth.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/synth.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- synth.cpp 20 Mar 2005 16:24:55 -0000 1.2
+++ synth.cpp 13 Apr 2005 18:36:55 -0000 1.3
@@ -22,7 +22,6 @@
#include <math.h>
#include <string.h>
#include <stdlib.h>
-#include <errno.h>
#include "mt32emu.h"
@@ -395,7 +394,7 @@
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 @@
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;
}
}
More information about the Scummvm-git-logs
mailing list