[Scummvm-git-logs] scummvm master -> 40031bf5c06c8fcf34e8560111daa5f1817467bc
bluegr
bluegr at gmail.com
Sat Sep 11 09:31:01 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
40031bf5c0 TRECISION: Add a game ID and an initial detection entry for Ark of Time
Commit: 40031bf5c06c8fcf34e8560111daa5f1817467bc
https://github.com/scummvm/scummvm/commit/40031bf5c06c8fcf34e8560111daa5f1817467bc
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2021-09-11T12:30:46+03:00
Commit Message:
TRECISION: Add a game ID and an initial detection entry for Ark of Time
Ark of Time isn't supported at all yet, this is just a placeholder for
further development
Changed paths:
engines/trecision/detection.cpp
engines/trecision/trecision.cpp
engines/trecision/trecision.h
diff --git a/engines/trecision/detection.cpp b/engines/trecision/detection.cpp
index b8d438886d..ad4116ce85 100644
--- a/engines/trecision/detection.cpp
+++ b/engines/trecision/detection.cpp
@@ -25,6 +25,7 @@
#include "engines/advancedDetector.h"
static const PlainGameDescriptor trecisionGames[] = {
+ {"aot", "Ark of Time"},
{"nl", "Nightlong: Union City Conspiracy"},
{0, 0}
};
@@ -194,7 +195,18 @@ static const ADGameDescription gameDescriptions[] = {
ADGF_UNSTABLE,
GUIO0()
},
-
+ {
+ "aot",
+ _s("Missing game code"),
+ {
+ {"dialogue.dat", 0, "afc71fe29b1be3a9b145b8d61dfa4539", 166155130},
+ {"sentence.dat", 0, "f38afcd22e7de14f9a2343e911eaa126", 75668232},
+ },
+ Common::EN_ANY,
+ Common::kPlatformDOS,
+ ADGF_UNSUPPORTED,
+ GUIO0()
+ },
AD_TABLE_END_MARKER
};
diff --git a/engines/trecision/trecision.cpp b/engines/trecision/trecision.cpp
index 84ba17ef7c..8e6b02f794 100644
--- a/engines/trecision/trecision.cpp
+++ b/engines/trecision/trecision.cpp
@@ -51,6 +51,8 @@ class File;
namespace Trecision {
TrecisionEngine::TrecisionEngine(OSystem *syst, const ADGameDescription *desc) : Engine(syst), _gameDescription(desc) {
+ _gameId = !strcmp(_gameDescription->gameId, "nl") ? GID_NightLong : GID_ArkOfTime;
+
const Common::FSNode gameDataDir(ConfMan.get("path"));
SearchMan.addSubDirectoryMatching(gameDataDir, "AUTORUN");
SearchMan.addSubDirectoryMatching(gameDataDir, "DATA");
diff --git a/engines/trecision/trecision.h b/engines/trecision/trecision.h
index 6b4279fcb8..2a38376455 100644
--- a/engines/trecision/trecision.h
+++ b/engines/trecision/trecision.h
@@ -65,6 +65,11 @@ class AnimTypeManager;
#define MAXINVENTORY 150 // Inventory Items
#define MAXSAVEFILE 12
+enum TrecisionGameId {
+ GID_ArkOfTime = 0,
+ GID_NightLong = 1
+};
+
enum TrecisionMessageIds {
kMessageSavePosition = 9,
kMessageEmptySpot = 10,
@@ -143,6 +148,8 @@ class TrecisionEngine : public Engine {
void readObj(Common::SeekableReadStream *stream);
void readObject(Common::SeekableReadStream *stream, uint16 objIndex, uint16 objectId);
+ TrecisionGameId _gameId;
+
char *_textArea;
uint16 _curScriptFrame[10];
char *_textPtr;
@@ -160,6 +167,7 @@ public:
// ScummVM
Common::Error run() override;
+ TrecisionGameId getGameId() const { return _gameId; }
bool isDemo() const { return _gameDescription->flags & ADGF_DEMO; }
bool isAmiga() const { return _gameDescription->platform == Common::kPlatformAmiga; }
bool hasFeature(EngineFeature f) const override;
More information about the Scummvm-git-logs
mailing list