aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/totfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/totfile.cpp')
-rw-r--r--engines/gob/totfile.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/gob/totfile.cpp b/engines/gob/totfile.cpp
index b8882ba588..46d422d44d 100644
--- a/engines/gob/totfile.cpp
+++ b/engines/gob/totfile.cpp
@@ -98,4 +98,20 @@ bool TOTFile::getProperties(Properties &props) const {
return true;
}
+Common::String TOTFile::createFileName(const Common::String &base, bool &isLOM) {
+ isLOM = false;
+
+ const char *dot;
+ if ((dot = strrchr(base.c_str(), '.'))) {
+ // fileName includes an extension
+
+ if (!scumm_stricmp(dot + 1, "LOM"))
+ isLOM = true;
+
+ return base;
+ }
+
+ return base + ".tot";
+}
+
} // End of namespace Gob