aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/detection.cpp')
-rw-r--r--engines/glk/detection.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/engines/glk/detection.cpp b/engines/glk/detection.cpp
index 33a15757ba..43f1291b0d 100644
--- a/engines/glk/detection.cpp
+++ b/engines/glk/detection.cpp
@@ -54,6 +54,37 @@
#include "common/config-manager.h"
#include "common/file.h"
+namespace Glk {
+
+GlkDetectedGame::GlkDetectedGame(const char *gameId, const char *gameDesc, const Common::String &filename) :
+ DetectedGame(gameId, gameDesc, Common::EN_ANY, Common::kPlatformUnknown) {
+ setGUIOptions(GUIO2(GUIO_NOSPEECH, GUIO_NOMIDI));
+ addExtraEntry("filename", filename);
+}
+
+GlkDetectedGame::GlkDetectedGame(const char *gameId, const char *gameDesc, const Common::String &filename,
+ Common::Language lang) : DetectedGame(gameId, gameDesc, lang, Common::kPlatformUnknown) {
+ setGUIOptions(GUIO2(GUIO_NOSPEECH, GUIO_NOMIDI));
+ addExtraEntry("filename", filename);
+}
+
+GlkDetectedGame::GlkDetectedGame(const char *gameId, const char *gameDesc, const Common::String &filename,
+ const Common::String &md5, size_t filesize) :
+ DetectedGame(gameId, gameDesc, Common::UNK_LANG, Common::kPlatformUnknown) {
+ setGUIOptions(GUIO2(GUIO_NOSPEECH, GUIO_NOMIDI));
+ addExtraEntry("filename", filename);
+
+ canBeAdded = true;
+ hasUnknownFiles = true;
+
+ FileProperties fp;
+ fp.md5 = md5;
+ fp.size = filesize;
+ matchedFiles[filename] = fp;
+}
+
+} // End of namespace Glk
+
bool GlkMetaEngine::hasFeature(MetaEngineFeature f) const {
return
(f == kSupportsListSaves) ||