diff options
author | whitertandrek | 2018-03-17 20:27:03 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | f8055bc2067d369e13b056d723512f198c10f973 (patch) | |
tree | 6110a22232e31e7db691a981e9f6c30545303f01 /engines/pink/archive.cpp | |
parent | 4ff13d64ba3812a0847ef9f0634581ba0715e075 (diff) | |
download | scummvm-rg350-f8055bc2067d369e13b056d723512f198c10f973.tar.gz scummvm-rg350-f8055bc2067d369e13b056d723512f198c10f973.tar.bz2 scummvm-rg350-f8055bc2067d369e13b056d723512f198c10f973.zip |
PINK: split declaration and definition and some fixes
Diffstat (limited to 'engines/pink/archive.cpp')
-rw-r--r-- | engines/pink/archive.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/pink/archive.cpp b/engines/pink/archive.cpp index ab6ab781b8..e4605af31d 100644 --- a/engines/pink/archive.cpp +++ b/engines/pink/archive.cpp @@ -33,7 +33,6 @@ enum { kNullObject = 0 }; - enum { kActionHide, kActionLoop, @@ -90,21 +89,23 @@ static const struct RuntimeClass { int id; } classMap[] = { {"GamePage", kGamePage}, + {"InventoryItem", kInventoryItem}, {"ModuleProxy", kModuleProxy} }; static Object* createObject(int objectId){ switch (objectId){ case kGamePage: - return new GamePage(); + return new GamePage; + case kInventoryItem: + return new InventoryItem; case kModuleProxy: - return new ModuleProxy(); + return new ModuleProxy; default: return nullptr; } } - Archive::Archive(Common::File &file) : _file(file) { |