aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/animation_he.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2013-07-15 22:52:03 -0400
committerMatthew Hoops2013-10-05 15:45:36 -0400
commit3bfd42220533a3f2cd19e8f8a726ecc48ee97625 (patch)
treeabf18fc030d69183fe98a854b77bcac386bcac01 /engines/scumm/he/animation_he.cpp
parent3f65a02ced741979ede333539bac67ead9dbc368 (diff)
downloadscummvm-rg350-3bfd42220533a3f2cd19e8f8a726ecc48ee97625.tar.gz
scummvm-rg350-3bfd42220533a3f2cd19e8f8a726ecc48ee97625.tar.bz2
scummvm-rg350-3bfd42220533a3f2cd19e8f8a726ecc48ee97625.zip
SCUMM: Make all HE saves prepend the target name
This makes HE follow the ScummVM convention of using the target name everywhere. It also fixes having more than one team in both soccer and football. Loading old saves will still work and they will be tried if the newer save names are not found.
Diffstat (limited to 'engines/scumm/he/animation_he.cpp')
-rw-r--r--engines/scumm/he/animation_he.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/he/animation_he.cpp b/engines/scumm/he/animation_he.cpp
index d01b456c8b..c736c6a04c 100644
--- a/engines/scumm/he/animation_he.cpp
+++ b/engines/scumm/he/animation_he.cpp
@@ -57,7 +57,7 @@ int MoviePlayer::getImageNum() {
return _wizResNum;
}
-int MoviePlayer::load(const char *filename, int flags, int image) {
+int MoviePlayer::load(const Common::String &filename, int flags, int image) {
if (_video->isVideoLoaded())
_video->close();
@@ -65,13 +65,13 @@ int MoviePlayer::load(const char *filename, int flags, int image) {
_video->setDefaultHighColorFormat(g_system->getScreenFormat());
if (!_video->loadFile(filename)) {
- warning("Failed to load video file %s", filename);
+ warning("Failed to load video file %s", filename.c_str());
return -1;
}
_video->start();
- debug(1, "Playing video %s", filename);
+ debug(1, "Playing video %s", filename.c_str());
if (flags & 2)
_vm->_wiz->createWizEmptyImage(image, 0, 0, _video->getWidth(), _video->getHeight());