diff options
author | Nicola Mettifogo | 2007-02-25 21:04:51 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-02-25 21:04:51 +0000 |
commit | 420a7c5f752af9add4a3d671bf68ea1d5c1bcff4 (patch) | |
tree | 037fa11bef41a12cfad511e6e2bc26e335c88a91 /engines/parallaction/disk.h | |
parent | cacff9a9f26eff5111b1f5eef3491ac406f1245d (diff) | |
download | scummvm-rg350-420a7c5f752af9add4a3d671bf68ea1d5c1bcff4.tar.gz scummvm-rg350-420a7c5f752af9add4a3d671bf68ea1d5c1bcff4.tar.bz2 scummvm-rg350-420a7c5f752af9add4a3d671bf68ea1d5c1bcff4.zip |
made Archive behave more like Common::File, preparing for inheritance
svn-id: r25867
Diffstat (limited to 'engines/parallaction/disk.h')
-rw-r--r-- | engines/parallaction/disk.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/parallaction/disk.h b/engines/parallaction/disk.h index 45663198a1..256d94b77a 100644 --- a/engines/parallaction/disk.h +++ b/engines/parallaction/disk.h @@ -53,14 +53,11 @@ protected: Common::File _archive; +protected: + void resetArchivedFile(); + public: - Archive() { - _file = false; - _fileIndex = 0; - _fileOffset = 0; - _fileCursor = 0; - _fileEndOffset = 0; - } + Archive(); void open(const char *file); void close(); @@ -68,7 +65,7 @@ public: bool openArchivedFile(const char *name); void closeArchivedFile(); - uint16 getArchivedFileLength(const char *name); + uint16 getArchivedFileLength(); int16 readArchivedFile(void *buffer, uint16 size); char *readArchivedFileText(char *buf, uint16 size); |