aboutsummaryrefslogtreecommitdiff
path: root/scumm/bundle.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-09-15 19:28:34 +0000
committerPaweł Kołodziejski2002-09-15 19:28:34 +0000
commitf7ff5c67fada77c23dd870f4da4ef7dae3b47e94 (patch)
tree2d2311161f22a9f9694ca1ac2a0cef6739a9d19f /scumm/bundle.cpp
parent37d7a52c47e59f7c348154c88d5a2410c0e84aab (diff)
downloadscummvm-rg350-f7ff5c67fada77c23dd870f4da4ef7dae3b47e94.tar.gz
scummvm-rg350-f7ff5c67fada77c23dd870f4da4ef7dae3b47e94.tar.bz2
scummvm-rg350-f7ff5c67fada77c23dd870f4da4ef7dae3b47e94.zip
improved open function in File class
svn-id: r4945
Diffstat (limited to 'scumm/bundle.cpp')
-rw-r--r--scumm/bundle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp
index 5edd66e98a..80ca8eb487 100644
--- a/scumm/bundle.cpp
+++ b/scumm/bundle.cpp
@@ -31,13 +31,13 @@ Bundle::Bundle() {
Bundle::~Bundle() {
}
-bool Bundle::openVoiceFile(char *filename) {
+bool Bundle::openVoiceFile(const char *filename, const char *directory) {
int32 tag, offset;
if (_voiceFile.isOpen() == true)
return true;
- if (_voiceFile.open(filename) == false) {
+ if (_voiceFile.open(filename, directory) == false) {
warning("Bundle: Can't open voice bundle file: %s", filename);
return false;
}
@@ -71,13 +71,13 @@ bool Bundle::openVoiceFile(char *filename) {
return true;
}
-bool Bundle::openMusicFile(char *filename) {
+bool Bundle::openMusicFile(const char *filename, const char *directory) {
int32 tag, offset;
if (_musicFile.isOpen() == true)
return true;
- if (_musicFile.open(filename) == false) {
+ if (_musicFile.open(filename, directory) == false) {
warning("Bundle: Can't open music bundle file: %s", filename);
return false;
}