mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Fix MI1 & BS1 bugs reported in #1276592 - both are related to the number of open file handles.
svn-id: r19837
This commit is contained in:
parent
52eee62ba6
commit
c4c9ca6f99
@ -67,7 +67,12 @@ private:
|
||||
ExtStatus _cd;
|
||||
|
||||
enum {
|
||||
#if defined(__PSP__)
|
||||
CACHE_TRACKS = 4 //the PSP can't have more than 8 files open simultaneously
|
||||
//so don't use more than 4 filehandles for CD tracks
|
||||
#else
|
||||
CACHE_TRACKS = 10
|
||||
#endif
|
||||
};
|
||||
int _cachedTracks[CACHE_TRACKS];
|
||||
DigitalTrackInfo *_trackInfo[CACHE_TRACKS];
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user