[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src palm.cpp,1.18,1.19
Chris Apers
chrilith at users.sourceforge.net
Wed Jul 23 13:18:03 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sky intro.cpp,1.32,1.33 sound.cpp,1.29,1.30 sound.h,1.13,1.14
- Next message: [Scummvm-cvs-logs] CVS: scummvm Info.plist,1.7,1.7.2.1 scummvm.rc,1.8,1.8.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1:/tmp/cvs-serv18277
Modified Files:
palm.cpp
Log Message:
Fix a bug with checkMSA that let the last track play even if we exit to the launcher. Also enable to use MSALib if the lib is opened by another application
Index: palm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/palm.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- palm.cpp 22 Jul 2003 20:36:42 -0000 1.18
+++ palm.cpp 23 Jul 2003 20:17:07 -0000 1.19
@@ -921,8 +921,10 @@
// free(_sndDataP);
free(_sndTempP);
- if (_msaRefNum != sysInvalidRefNum)
+ if (_msaRefNum != sysInvalidRefNum) {
+ MsaStop(_msaRefNum, true); // stop the current track if any (needed if we use enforce open to prevent the track to play after exit)
MsaLibClose(_msaRefNum, msaLibOpenModeAlbum);
+ }
unload_gfx_mode();
_quit = true;
@@ -1035,7 +1037,7 @@
// Char buf[100];
// StrPrintF(buf,"MSA refNum %ld, Try to open lib ...", refNum);
// FrmCustomAlert(1000,buf,0,0);
-// MsaLibClose(refNum, msaLibOpenModeAlbum);
+ MsaLibClose(refNum, msaLibOpenModeAlbum); // try to close the lib if we previously let it open (?)
error = MsaLibOpen(refNum, msaLibOpenModeAlbum);
/* switch (error) {
case msaErrAlreadyOpen:
@@ -1051,12 +1053,11 @@
FrmCustomAlert(1000,"expErrCardNotPresent",0,0);
break;
}
-
- if (error == msaErrAlreadyOpen) {
- error = MsaLibEnforceOpen(refNum, msaLibOpenModeAlbum, msaLibCreatorID);
- FrmCustomAlert(1000,"Force no error",0,0);
- }
-*/// error = errNone;
+*/
+ if (error == msaErrAlreadyOpen)
+ error = MsaLibEnforceOpen(refNum, msaLibOpenModeAlbum, appFileCreator);
+
+ error = (error != msaErrStillOpen) ? error : errNone;
}
//}
}
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sky intro.cpp,1.32,1.33 sound.cpp,1.29,1.30 sound.h,1.13,1.14
- Next message: [Scummvm-cvs-logs] CVS: scummvm Info.plist,1.7,1.7.2.1 scummvm.rc,1.8,1.8.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list