RCS file: /cvsroot/scummvm/scummvm/base/main.cpp,v
retrieving revision 1.45
diff -u -d -r1.45 main.cpp
|
|
|
34 | 34 | #include "base/plugins.h" |
35 | 35 | #include "base/version.h" |
36 | 36 | #include "common/config-manager.h" |
| 37 | #include "common/file.h" |
37 | 38 | #include "common/scaler.h" // For GFX_NORMAL |
38 | 39 | #include "common/timer.h" |
39 | 40 | #include "gui/newgui.h" |
… |
… |
|
259 | 260 | Engine *engine = detector.createEngine(system); |
260 | 261 | assert(engine); |
261 | 262 | |
| 263 | // Add extrapath (if any) to the directory search list |
| 264 | if (ConfMan.hasKey("extrapath")) |
| 265 | File::addDefaultDirectory(ConfMan.get("extrapath")); |
| 266 | |
262 | 267 | // Run the game engine |
263 | 268 | engine->go(); |
264 | 269 | |
RCS file: /cvsroot/scummvm/scummvm/graphics/animation.cpp,v
retrieving revision 1.10
diff -u -d -r1.10 animation.cpp
|
|
|
47 | 47 | |
48 | 48 | |
49 | 49 | bool BaseAnimationState::init(const char *name) { |
50 | | const Common::String ePath = ConfMan.get("extrapath"); |
51 | | |
52 | 50 | #ifdef USE_MPEG2 |
53 | 51 | char tempFile[512]; |
54 | 52 | |
… |
… |
|
65 | 63 | |
66 | 64 | File f; |
67 | 65 | |
68 | | if (!f.open(tempFile) && !f.open(tempFile, File::kFileReadMode, ePath.c_str())) { |
| 66 | if (!f.open(tempFile)) { |
69 | 67 | warning("Cutscene: %s palette missing", tempFile); |
70 | 68 | return false; |
71 | 69 | } |
… |
… |
|
114 | 112 | // Open MPEG2 stream |
115 | 113 | mpgfile = new File(); |
116 | 114 | sprintf(tempFile, "%s.mp2", name); |
117 | | if (!mpgfile->open(tempFile) && |
118 | | !mpgfile->open(tempFile, File::kFileReadMode, ePath.c_str())) { |
| 115 | if (!mpgfile->open(tempFile)) { |
119 | 116 | warning("Cutscene: Could not open %s", tempFile); |
120 | 117 | return false; |
121 | 118 | } |
… |
… |
|
134 | 131 | |
135 | 132 | // Play audio |
136 | 133 | bgSoundStream = AudioStream::openStreamFile(name); |
137 | | if (bgSoundStream == NULL) |
138 | | bgSoundStream = AudioStream::openStreamFile(name, ePath.c_str()); |
139 | 134 | |
140 | 135 | if (bgSoundStream != NULL) { |
141 | 136 | _snd->playInputStream(&bgSound, bgSoundStream, false, 255, 0, -1, false); |
RCS file: /cvsroot/scummvm/scummvm/sword1/resman.cpp,v
retrieving revision 1.18
diff -u -d -r1.18 resman.cpp
|
|
|
58 | 58 | void ResMan::loadCluDescript(const char *fileName) { |
59 | 59 | File resFile; |
60 | 60 | resFile.open(fileName); |
61 | | if (!resFile.isOpen()) { |
62 | | // Uh-uh, file not found. Perhaps we're playing straight from CD2? |
63 | | // Check the Extra Path. |
64 | | const Common::String ePath = ConfMan.get("extrapath"); |
65 | | resFile.open(fileName, File::kFileReadMode, ePath.c_str()); |
66 | | } |
67 | 61 | |
68 | 62 | if (!resFile.isOpen()) { |
69 | 63 | char msg[512]; |