diff options
author | Max Horn | 2009-11-23 22:28:44 +0000 |
---|---|---|
committer | Max Horn | 2009-11-23 22:28:44 +0000 |
commit | 6312da6d13b15c4b71f324c0106c8883ee024f45 (patch) | |
tree | 3f24440ce25d80777d6b68df0fa5acbece90b983 /backends/platform/ps2/fileio.h | |
parent | 68ebbf9022357b4a01063fe7354957c8df296346 (diff) | |
download | scummvm-rg350-6312da6d13b15c4b71f324c0106c8883ee024f45.tar.gz scummvm-rg350-6312da6d13b15c4b71f324c0106c8883ee024f45.tar.bz2 scummvm-rg350-6312da6d13b15c4b71f324c0106c8883ee024f45.zip |
PS2: cleanup
svn-id: r46105
Diffstat (limited to 'backends/platform/ps2/fileio.h')
-rw-r--r-- | backends/platform/ps2/fileio.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/backends/platform/ps2/fileio.h b/backends/platform/ps2/fileio.h index 6838162e06..e3b1a98db9 100644 --- a/backends/platform/ps2/fileio.h +++ b/backends/platform/ps2/fileio.h @@ -26,22 +26,21 @@ #ifndef __PS2FILE_IO__ #define __PS2FILE_IO__ -typedef unsigned long uint64; -typedef signed long int64; - #include <stdio.h> #include "common/scummsys.h" +enum { + CACHE_SIZE = 2048 * 32, + MAX_READ_STEP = 2048 * 16, + MAX_CACHED_FILES = 6, + CACHE_READ_THRESHOLD = 16 * 2048, + CACHE_FILL_MIN = 2048 * 24, + READ_ALIGN = 64, // align all reads to the size of an EE cache line + READ_ALIGN_MASK = READ_ALIGN - 1 +}; -#define CACHE_SIZE (2048 * 32) -#define MAX_READ_STEP (2048 * 16) -#define MAX_CACHED_FILES 6 -#define CACHE_READ_THRESHOLD (16 * 2048) -#define CACHE_FILL_MIN (2048 * 24) -#define READ_ALIGN 64 // align all reads to the size of an EE cache line -#define READ_ALIGN_MASK (READ_ALIGN - 1) - - +// TODO: Make this a subclass of SeekableReadStream & WriteStream +// See also StdioStream. class Ps2File { public: Ps2File(void); |