aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/scene.h
diff options
context:
space:
mode:
authorAndrew Kurushin2010-10-24 22:17:44 +0000
committerAndrew Kurushin2010-10-24 22:17:44 +0000
commit67cc1b8a84e8cbc344e87fe0f4715cae96199b69 (patch)
treefddf53a8a74288676993025c5c1ad073982db740 /engines/saga/scene.h
parent859c1c2c08c39262de6b6ba6e1169bb03d14353a (diff)
downloadscummvm-rg350-67cc1b8a84e8cbc344e87fe0f4715cae96199b69.tar.gz
scummvm-rg350-67cc1b8a84e8cbc344e87fe0f4715cae96199b69.tar.bz2
scummvm-rg350-67cc1b8a84e8cbc344e87fe0f4715cae96199b69.zip
SAGA: replace Resource:loadResource malloc with ByteArray class
svn-id: r53779
Diffstat (limited to 'engines/saga/scene.h')
-rw-r--r--engines/saga/scene.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/saga/scene.h b/engines/saga/scene.h
index 8e55a15118..514e662a45 100644
--- a/engines/saga/scene.h
+++ b/engines/saga/scene.h
@@ -110,11 +110,10 @@ enum SAGAResourceTypes {
struct SceneResourceData {
uint32 resourceId;
int resourceType;
- byte *buffer;
- size_t size;
+ ByteArray buffer;
bool invalid;
- SceneResourceData() : resourceId(0), resourceType(0), buffer(NULL), size(0), invalid(false) {
+ SceneResourceData() : resourceId(0), resourceType(0), invalid(false) {
}
};
@@ -151,8 +150,6 @@ struct SceneImage {
int h;
int p;
ByteArray buffer;
- byte *res_buf;
- size_t res_len;
PalEntry pal[256];
SceneImage() : loaded(false), w(0), h(0), p(0) {
@@ -364,7 +361,7 @@ class Scene {
void loadScene(LoadSceneParams &loadSceneParams);
void loadSceneDescriptor(uint32 resourceId);
void loadSceneResourceList(uint32 resourceId);
- void loadSceneEntryList(const byte* resourcePointer, size_t resourceLength);
+ void loadSceneEntryList(const ByteArray &resourceData);
void processSceneResources();
void getResourceTypes(SAGAResourceTypes *&types, int &typesCount);