diff options
| author | Franklin Wei <franklin@rockbox.org> | 2019-07-29 17:32:45 -0400 |
|---|---|---|
| committer | Franklin Wei <franklin@rockbox.org> | 2019-07-29 17:32:45 -0400 |
| commit | 0c42b31a37de29c4a65bbd634d87b9ff46b88e6b (patch) | |
| tree | f6a8f96a7b4e3d720c0ef57f9e2a07a91ae05e90 /apps/plugins/sdl/progs/quake/sys_sdl.c | |
| parent | fb0d34650f990e44c741a0661d95ede3abed919b (diff) | |
| download | rockbox-quake5.zip rockbox-quake5.tar.gz rockbox-quake5.tar.bz2 rockbox-quake5.tar.xz | |
tmp on quakequake5
Change-Id: Id8bc9e5e47cad5c620f5273fc39348eb19e8e5d8
Diffstat (limited to 'apps/plugins/sdl/progs/quake/sys_sdl.c')
| -rw-r--r-- | apps/plugins/sdl/progs/quake/sys_sdl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/quake/sys_sdl.c b/apps/plugins/sdl/progs/quake/sys_sdl.c index 44411bd..4c0c88f 100644 --- a/apps/plugins/sdl/progs/quake/sys_sdl.c +++ b/apps/plugins/sdl/progs/quake/sys_sdl.c @@ -168,8 +168,11 @@ static int Qfilelength (FILE *f) } #define CACHE_THRESHOLD (1024*1024) +//#define CACHE_ENABLE /* really rough guesses */ + +#ifdef CACHE_ENABLE #if MEMORYSIZE >= 64 #define MAX_CACHE (32*1024*1024) #elif MEMORYSIZE >= 32 @@ -177,6 +180,9 @@ static int Qfilelength (FILE *f) #else #define MAX_CACHE 0 #endif +#else +#define MAX_CACHE 0 +#endif static int cache_left = MAX_CACHE; @@ -221,6 +227,8 @@ int Sys_FileOpenRead (char *path, int *hndl) } } } + + return len; } int Sys_FileOpenWrite (char *path) |