diff options
author | Robert Göffringmann | 2008-03-03 00:41:59 +0000 |
---|---|---|
committer | Robert Göffringmann | 2008-03-03 00:41:59 +0000 |
commit | 3b27b9fa438611c3a05fcf2d07a3dfde6be192fa (patch) | |
tree | 8605c47d67b779fb33ce4dda3a64a7d3caecdb4d /backends/platform/ps2/fileio.h | |
parent | fc91de07dfdfe6bd29edadf739f324f30f5624d0 (diff) | |
download | scummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.tar.gz scummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.tar.bz2 scummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.zip |
the ps2 changes from the 0.11.1 release, plus some bugfixes and cleanup.
svn-id: r31034
Diffstat (limited to 'backends/platform/ps2/fileio.h')
-rw-r--r-- | backends/platform/ps2/fileio.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/backends/platform/ps2/fileio.h b/backends/platform/ps2/fileio.h index 4ec004ed9a..d09d7313a6 100644 --- a/backends/platform/ps2/fileio.h +++ b/backends/platform/ps2/fileio.h @@ -26,6 +26,10 @@ #ifndef __PS2FILE_IO__ #define __PS2FILE_IO__ +typedef unsigned long uint64; +typedef signed long int64; + +#include <stdio.h> #include "common/scummsys.h" class Ps2File { @@ -43,21 +47,6 @@ public: private: }; -class Ps2SmushFile : public Ps2File { -public: - Ps2SmushFile(int64 cacheId); - virtual ~Ps2SmushFile(void); - virtual bool open(const char *name); - virtual uint32 read(void *dest, uint32 len); - virtual uint32 write(const void *src, uint32 len); - virtual uint32 tell(void); - virtual uint32 size(void); - virtual int seek(int32 offset, int origin); - virtual bool eof(void); -private: - uint32 _filePos, _fileSize; - int _id; -}; FILE *ps2_fopen(const char *fname, const char *mode); int ps2_fclose(FILE *stream); @@ -65,7 +54,6 @@ int ps2_fflush(FILE *stream); int ps2_fseek(FILE *stream, long offset, int origin); uint32 ps2_ftell(FILE *stream); int ps2_feof(FILE *stream); -uint32 ps2_fsize(FILE *stream); size_t ps2_fread(void *buf, size_t r, size_t n, FILE *stream); int ps2_fgetc(FILE *stream); |