quake: fix file loading errors

Forgot a return statement in Sys_FileRead (which slipped by since I've made
the questionable decision to disable all warnings...)

Change-Id: Ia0f3da52b43765b8e0e9953893ac7957ec2f6c2e
This commit is contained in:
Franklin Wei 2019-07-29 21:05:00 -04:00
parent 5e0bd5bfc0
commit 94109a9506

View file

@ -168,13 +168,19 @@ static int Qfilelength (FILE *f)
} }
#define CACHE_THRESHOLD (1024*1024) #define CACHE_THRESHOLD (1024*1024)
#define CACHE_ENABLE
/* really rough guesses */ /* really rough guesses */
#ifdef CACHE_ENABLE
#if MEMORYSIZE >= 64 #if MEMORYSIZE >= 64
#define MAX_CACHE (32*1024*1024) #define MAX_CACHE (32*1024*1024)
#elif MEMORYSIZE >= 32 #elif MEMORYSIZE >= 32
#define MAX_CACHE (20*1024*1024) #define MAX_CACHE (20*1024*1024)
#else #endif
#endif
#ifndef MAX_CACHE
#define MAX_CACHE 0 #define MAX_CACHE 0
#endif #endif
@ -221,6 +227,8 @@ int Sys_FileOpenRead (char *path, int *hndl)
} }
} }
} }
return len;
} }
int Sys_FileOpenWrite (char *path) int Sys_FileOpenWrite (char *path)