aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/rscfile.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2006-10-02 22:21:57 +0000
committerEugene Sandulenko2006-10-02 22:21:57 +0000
commit988ddf2b3664b37f20ddad46e65bc789145f1d80 (patch)
treebdd6e4b50eb3c8791081b90a1bb64f9110f58c6f /engines/saga/rscfile.cpp
parent574665be4b98675016bbb6aefcc1a00b70ee025c (diff)
downloadscummvm-rg350-988ddf2b3664b37f20ddad46e65bc789145f1d80.tar.gz
scummvm-rg350-988ddf2b3664b37f20ddad46e65bc789145f1d80.tar.bz2
scummvm-rg350-988ddf2b3664b37f20ddad46e65bc789145f1d80.zip
Unify SAGA/AGOS detection code so other engines could also reuse it
without further code duplication. svn-id: r24083
Diffstat (limited to 'engines/saga/rscfile.cpp')
-rw-r--r--engines/saga/rscfile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/saga/rscfile.cpp b/engines/saga/rscfile.cpp
index 040bafdbbe..fc8e973a40 100644
--- a/engines/saga/rscfile.cpp
+++ b/engines/saga/rscfile.cpp
@@ -340,14 +340,14 @@ bool Resource::loadContext(ResourceContext *context) {
bool Resource::createContexts() {
int i;
ResourceContext *context;
- _contextsCount = _vm->getGameDescription()->filesCount;
+ _contextsCount = _vm->getGameDescription()->desc.filesCount;
_contexts = (ResourceContext*)calloc(_contextsCount, sizeof(*_contexts));
for (i = 0; i < _contextsCount; i++) {
context = &_contexts[i];
context->file = new Common::File();
- context->fileName = _vm->getGameDescription()->filesDescriptions[i].fileName;
- context->fileType = _vm->getGameDescription()->filesDescriptions[i].fileType;
+ context->fileName = _vm->getGameDescription()->desc.filesDescriptions[i].fileName;
+ context->fileType = _vm->getGameDescription()->desc.filesDescriptions[i].fileType;
context->serial = 0;
// IHNM has serveral different voice files, so we need to allow