diff options
author | whiterandrek | 2018-06-14 20:43:59 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | bc4d32df8bb40b26d1999e08ecfe5d74f0e1e3b6 (patch) | |
tree | 448573e39005d37b21cbfe89226be468d22c62ab /engines/pink/file.h | |
parent | e4402a90ebf15687b656a17bf080c74d9ee9a5b6 (diff) | |
download | scummvm-rg350-bc4d32df8bb40b26d1999e08ecfe5d74f0e1e3b6.tar.gz scummvm-rg350-bc4d32df8bb40b26d1999e08ecfe5d74f0e1e3b6.tar.bz2 scummvm-rg350-bc4d32df8bb40b26d1999e08ecfe5d74f0e1e3b6.zip |
PINK: file code cleanup
Diffstat (limited to 'engines/pink/file.h')
-rw-r--r-- | engines/pink/file.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/engines/pink/file.h b/engines/pink/file.h index 80b7ec6f44..9901a67256 100644 --- a/engines/pink/file.h +++ b/engines/pink/file.h @@ -32,7 +32,7 @@ struct ObjectDescription { char name[16]; uint32 objectsOffset; - uint32 objectsCount; + //uint32 objectsCount; never used uint32 resourcesOffset; uint32 resourcesCount; }; @@ -43,8 +43,7 @@ struct ResourceDescription { char name[16]; uint32 offset; uint32 size; - bool inBro; // in original it is short. - // Don't know what's better to use.(Perhaps no difference because of padding) + bool inBro; }; class PinkEngine; @@ -56,28 +55,28 @@ public: virtual ~OrbFile(); virtual bool open(const Common::String &name); +public: void loadGame(PinkEngine *game); void loadObject(Object *obj, const Common::String &name); void loadObject(Object *obj, ObjectDescription *objDesc); - ObjectDescription *getObjDesc(const char *name); - - ResourceDescription *getResDescTable(ObjectDescription *objDesc); + ResourceDescription *createResDescTable(ObjectDescription *objDesc); + ObjectDescription *getObjDesc(const char *name); uint32 getTimestamp() { return _timestamp; } private: void seekToObject(const char *name); +private: ObjectDescription *_table; - uint32 _timestamp; - uint32 _tableOffset; uint32 _tableSize; + uint32 _timestamp; }; class BroFile : public Common::File { public: - virtual bool open(const Common::String &name, uint32 orbTimestamp); + bool open(const Common::String &name, uint32 orbTimestamp); }; } // End of namespace Pink |