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
diff --git a/apps/plugins/sdl/progs/quake/sys_sdl.c b/apps/plugins/sdl/progs/quake/sys_sdl.c
index 44411bd..efc2859 100644
--- a/apps/plugins/sdl/progs/quake/sys_sdl.c
+++ b/apps/plugins/sdl/progs/quake/sys_sdl.c
@@ -168,13 +168,19 @@
}
#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
#define MAX_CACHE (20*1024*1024)
-#else
+#endif
+#endif
+
+#ifndef MAX_CACHE
#define MAX_CACHE 0
#endif
@@ -221,6 +227,8 @@
}
}
}
+
+ return len;
}
int Sys_FileOpenWrite (char *path)