aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorMax Horn2004-06-28 00:06:31 +0000
committerMax Horn2004-06-28 00:06:31 +0000
commit53af3dc6700a6e7686fbf2e88cea283d6e335124 (patch)
treedcb1a4ffb7c717e5be3ddd909b604d5845d23597 /sword1
parentb1de21accbea8c333b24db91c47235bb5a8d14ef (diff)
downloadscummvm-rg350-53af3dc6700a6e7686fbf2e88cea283d6e335124.tar.gz
scummvm-rg350-53af3dc6700a6e7686fbf2e88cea283d6e335124.tar.bz2
scummvm-rg350-53af3dc6700a6e7686fbf2e88cea283d6e335124.zip
Enhanced default directory support in the File class; now one can specify arbitrary many default search directories
svn-id: r14095
Diffstat (limited to 'sword1')
-rw-r--r--sword1/sword1.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp
index 8fceede44f..d129d5bee1 100644
--- a/sword1/sword1.cpp
+++ b/sword1/sword1.cpp
@@ -97,6 +97,15 @@ SwordEngine::~SwordEngine() {
}
void SwordEngine::initialize(void) {
+
+ // Add default file directories
+ File::addDefaultDirectory(_gameDataPath + "/CLUSTERS/");
+ File::addDefaultDirectory(_gameDataPath + "/SPEECH/");
+ File::addDefaultDirectory(_gameDataPath + "/VIDEO/");
+ File::addDefaultDirectory(_gameDataPath + "/clusters/");
+ File::addDefaultDirectory(_gameDataPath + "/speech/");
+ File::addDefaultDirectory(_gameDataPath + "/video/");
+
_system->initSize(640, 480);
debug(5, "Starting memory manager");
_memMan = new MemMan();