aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLe Philousophe2019-03-12 08:43:56 +0100
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commit84b60b92bdd68077394e35c7b189b4f827b1c607 (patch)
tree7bdaed8f933bfbe666f5ead5a06d260f97fd95bf
parent01234cd773832548113e4607eaacb6022bfd829b (diff)
downloadscummvm-rg350-84b60b92bdd68077394e35c7b189b4f827b1c607.tar.gz
scummvm-rg350-84b60b92bdd68077394e35c7b189b4f827b1c607.tar.bz2
scummvm-rg350-84b60b92bdd68077394e35c7b189b4f827b1c607.zip
CRYOMNI3D: Fix appending of files extensions
We clear the previous extension and even if there is none, we must append the new one
-rw-r--r--engines/cryomni3d/fixed_image.cpp2
-rw-r--r--engines/cryomni3d/versailles/dialogs_manager.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/cryomni3d/fixed_image.cpp b/engines/cryomni3d/fixed_image.cpp
index fa2b4a2002..4522f2af5f 100644
--- a/engines/cryomni3d/fixed_image.cpp
+++ b/engines/cryomni3d/fixed_image.cpp
@@ -119,8 +119,8 @@ void ZonFixedImage::loadZones(const Common::String &image) {
}
if (lastDotPos > -1) {
fname.erase(lastDotPos);
- fname += ".zon";
}
+ fname += ".zon";
Common::File zonFile;
if (!zonFile.open(fname)) {
diff --git a/engines/cryomni3d/versailles/dialogs_manager.cpp b/engines/cryomni3d/versailles/dialogs_manager.cpp
index 4180a65d98..59bcedd093 100644
--- a/engines/cryomni3d/versailles/dialogs_manager.cpp
+++ b/engines/cryomni3d/versailles/dialogs_manager.cpp
@@ -353,8 +353,8 @@ void Versailles_DialogsManager::loadFrame(const Common::String &video) {
}
if (lastDotPos > -1) {
videoFName.erase(lastDotPos);
- videoFName += ".hnm";
}
+ videoFName += ".hnm";
Video::HNMDecoder *videoDecoder = new Video::HNMDecoder();