aboutsummaryrefslogtreecommitdiff
path: root/engines/made/resource.h
diff options
context:
space:
mode:
authorBenjamin Haisch2008-05-05 10:45:11 +0000
committerBenjamin Haisch2008-05-05 10:45:11 +0000
commitb6c7385eb4fea90dd315124fe5bffe874430eb48 (patch)
tree2ac22b5cafe9b9e5bbb7cbf616f0e5c41b34ba64 /engines/made/resource.h
parent665caae8b4e06a8a87ab41de0f2361bba4c7cf4f (diff)
downloadscummvm-rg350-b6c7385eb4fea90dd315124fe5bffe874430eb48.tar.gz
scummvm-rg350-b6c7385eb4fea90dd315124fe5bffe874430eb48.tar.bz2
scummvm-rg350-b6c7385eb4fea90dd315124fe5bffe874430eb48.zip
- Renamed XmidiResource to GenericResource
- Added MIDI resource type - Added ScriptFunctionsLgop2 and ScriptFunctionsMhne (for Leather Goddesses of Phobos 2 and The Manhole: New and Enhanced, resp.) - Many changes for LGOP2 and The Manhole: N&E Note about the new ScriptFunctions classes: I copied the ScriptFunctionsRtz class and so duplicated a lot of code. Most of the opcode functions are the same in all games but there might be differences. Once all common opcode functions have been figured out, they'll be moved to a common place (like the ScriptFunctions class). svn-id: r31871
Diffstat (limited to 'engines/made/resource.h')
-rw-r--r--engines/made/resource.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/made/resource.h b/engines/made/resource.h
index 3dc055946f..be85561318 100644
--- a/engines/made/resource.h
+++ b/engines/made/resource.h
@@ -46,7 +46,8 @@ enum ResourceType {
kResANIM = MKID_BE('ANIM'),
kResMENU = MKID_BE('MENU'),
kResFONT = MKID_BE('FONT'),
- kResXMID = MKID_BE('XMID')
+ kResXMID = MKID_BE('XMID'),
+ kResMIDI = MKID_BE('MIDI')
};
struct ResourceSlot;
@@ -127,10 +128,10 @@ protected:
byte *getCharData(uint c) const;
};
-class XmidiResource : public Resource {
+class GenericResource : public Resource {
public:
- XmidiResource();
- ~XmidiResource();
+ GenericResource();
+ ~GenericResource();
void load(byte *source, int size);
byte *getData() const { return _data; }
int getSize() const { return _size; }
@@ -163,7 +164,8 @@ public:
SoundResource *getSound(int index);
MenuResource *getMenu(int index);
FontResource *getFont(int index);
- XmidiResource *getXmidi(int index);
+ GenericResource *getXmidi(int index);
+ GenericResource *getMidi(int index);
void freeResource(Resource *resource);