[Scummvm-cvs-logs] CVS: scummvm/sword1 resman.h,1.17,1.18
Joost Peters
joostp at users.sourceforge.net
Tue Dec 27 11:19:01 CET 2005
Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22840/sword1
Modified Files:
resman.h
Log Message:
Fix MI1 & BS1 bugs reported in #1276592 - both are related to the number of open file handles.
Index: resman.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/resman.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- resman.h 18 Oct 2005 01:30:24 -0000 1.17
+++ resman.h 27 Dec 2005 19:17:53 -0000 1.18
@@ -29,7 +29,14 @@
namespace Sword1 {
#define MAX_LABEL_SIZE (31+1)
+
+#if defined(__PSP__)
+#define MAX_OPEN_CLUS 4 // the PSP can't have more than 8 files open simultaneously
+ // since we also need filehandles for music and sometimes savegames
+ // set the maximum number of open clusters to 4.
+#else
#define MAX_OPEN_CLUS 8 // don't open more than 8 files at once
+#endif
struct Grp {
uint32 noRes;
More information about the Scummvm-git-logs
mailing list