aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/disk_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-24 20:14:51 +0000
committerNicola Mettifogo2007-08-24 20:14:51 +0000
commit37cdd1c69ad4a1750c3041d5cceeed676da9061f (patch)
treedfd19d7e1b667e16d319c5e599907c61ba16e18e /engines/parallaction/disk_br.cpp
parent2bfc4466df238fea2162466cca06de88c773e6c5 (diff)
downloadscummvm-rg350-37cdd1c69ad4a1750c3041d5cceeed676da9061f.tar.gz
scummvm-rg350-37cdd1c69ad4a1750c3041d5cceeed676da9061f.tar.bz2
scummvm-rg350-37cdd1c69ad4a1750c3041d5cceeed676da9061f.zip
First step in restructuring engine code:
- code has been consolidated in fewer files - new table-driven parsers/execution - some functions has been pushed down the engine hierarchy - Parallaction_br now inherits from Parallaction_ns svn-id: r28711
Diffstat (limited to 'engines/parallaction/disk_br.cpp')
-rw-r--r--engines/parallaction/disk_br.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index 9e301a66c3..4853a9fb1a 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -102,7 +102,15 @@ Script* DosDisk_br::loadLocation(const char *name) {
Script* DosDisk_br::loadScript(const char* name) {
debugC(5, kDebugDisk, "DosDisk_br::loadScript");
- return 0;
+
+ Common::File *stream = new Common::File;
+
+ char path[PATH_LEN];
+ sprintf(path, "%s/scripts/%s.scr", _partPath, name);
+ if (!stream->open(path))
+ errorFileNotFound(path);
+
+ return new Script(stream, true);
}
// there are no Head resources in Big Red Adventure
@@ -275,7 +283,7 @@ Table* DosDisk_br::loadTable(const char* name) {
stream.close();
- return 0;
+ return t;
}
Common::SeekableReadStream* DosDisk_br::loadMusic(const char* name) {