aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/audiocd.h5
-rw-r--r--sword1/resman.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/sound/audiocd.h b/sound/audiocd.h
index c199a46e7e..0bdeb0c396 100644
--- a/sound/audiocd.h
+++ b/sound/audiocd.h
@@ -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];
diff --git a/sword1/resman.h b/sword1/resman.h
index bd7387dca2..9cf277b897 100644
--- a/sword1/resman.h
+++ b/sword1/resman.h
@@ -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;