diff options
author | Einar Johan Trøan Sømåen | 2012-06-03 02:32:13 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-03 02:32:13 +0200 |
commit | f0a0f5c35c2571bcd6e1e26392d381d64092a1df (patch) | |
tree | 339154fc8f5032482bbe22245a94241406e33fee /engines/wintermute | |
parent | 9f66bed4b5517ffdf3caaa13a9f08f049ad2e08e (diff) | |
download | scummvm-rg350-f0a0f5c35c2571bcd6e1e26392d381d64092a1df.tar.gz scummvm-rg350-f0a0f5c35c2571bcd6e1e26392d381d64092a1df.tar.bz2 scummvm-rg350-f0a0f5c35c2571bcd6e1e26392d381d64092a1df.zip |
WINTERMUTE: Actually register all DCPs.
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/Base/BFileManager.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/wintermute/Base/BFileManager.cpp b/engines/wintermute/Base/BFileManager.cpp index 8a13b3155a..9b0789fd1b 100644 --- a/engines/wintermute/Base/BFileManager.cpp +++ b/engines/wintermute/Base/BFileManager.cpp @@ -343,8 +343,14 @@ HRESULT CBFileManager::RegisterPackages() { warning("Scanning packages");
// TODO: Actually scan the folder, for now we just hardcode the files for Dirty Split.
- RegisterPackage("data.dcp");
- RegisterPackage("english.dcp");
+ Common::ArchiveMemberList files;
+ SearchMan.listMatchingMembers(files, "*.dcp");
+ int size = files.size();
+ for (Common::ArchiveMemberList::iterator it = files.begin(); it != files.end(); it++) {
+ RegisterPackage((*it)->getName().c_str());
+ }
+/* RegisterPackage("data.dcp");
+ RegisterPackage("english.dcp");*/
#if 0
AnsiString extension = AnsiString(PACKAGE_EXTENSION);
|