aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/blorb.cpp
diff options
context:
space:
mode:
authorCameron Cawley2019-03-31 19:46:16 +0100
committerPaul Gilbert2019-03-31 16:37:47 -0700
commit280a4f2d911d10f8199a88805fae6966ac00f44b (patch)
treeb3d84b0f23517c5c47700d944c4d49afff30a3ea /engines/glk/blorb.cpp
parent7b4c6d6a35f00e46d9021b236393a40aa54e6a6e (diff)
downloadscummvm-rg350-280a4f2d911d10f8199a88805fae6966ac00f44b.tar.gz
scummvm-rg350-280a4f2d911d10f8199a88805fae6966ac00f44b.tar.bz2
scummvm-rg350-280a4f2d911d10f8199a88805fae6966ac00f44b.zip
GLK: Only check the format of a Blorb file if it has a valid file extension
Diffstat (limited to 'engines/glk/blorb.cpp')
-rw-r--r--engines/glk/blorb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/glk/blorb.cpp b/engines/glk/blorb.cpp
index ebf5e0150b..03c3dd3051 100644
--- a/engines/glk/blorb.cpp
+++ b/engines/glk/blorb.cpp
@@ -213,4 +213,9 @@ bool Blorb::isBlorb(const Common::String &filename, uint32 type) {
return isBlorb(f, type);
}
+bool Blorb::hasBlorbExt(const Common::String &filename) {
+ return filename.hasSuffixIgnoreCase(".blorb") || filename.hasSuffixIgnoreCase(".zblorb")
+ || filename.hasSuffixIgnoreCase(".gblorb") || filename.hasSuffixIgnoreCase(".blb");
+}
+
} // End of namespace Glk