Skip to content

Commit

Permalink
DIRECTOR: Add detection for jman Japanese
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops authored and sev- committed Aug 3, 2016
1 parent 649ef2a commit 5e08747
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/director/detection.cpp
Expand Up @@ -77,10 +77,17 @@ static const PlainGameDescriptor directorGames[] = {

#include "director/detection_tables.h"

static const char *directoryGlobs[] = {
"install",
0
};

class DirectorMetaEngine : public AdvancedMetaEngine {
public:
DirectorMetaEngine() : AdvancedMetaEngine(Director::gameDescriptions, sizeof(Director::DirectorGameDescription), directorGames) {
_singleid = "director";
_maxScanDepth = 2,
_directoryGlobs = directoryGlobs;
}

virtual const char *getName() const {
Expand Down
14 changes: 14 additions & 0 deletions engines/director/detection_tables.h
Expand Up @@ -154,6 +154,20 @@ static const DirectorGameDescription gameDescriptions[] = {
4
},

{
{
"jman",
"",
AD_ENTRY1("JOURNEY.EXE", "65d06b5fef155a2473434571aff5bc29"),
Common::JA_JPN,
Common::kPlatformWindows,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOASPECT)
},
GID_GENERIC,
3
},

{
{
"jman",
Expand Down
5 changes: 5 additions & 0 deletions engines/director/director.cpp
Expand Up @@ -22,6 +22,7 @@

#include "audio/mixer.h"

#include "common/config-manager.h"
#include "common/debug.h"
#include "common/scummsys.h"
#include "common/error.h"
Expand All @@ -44,6 +45,10 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam

_mainArchive = 0;
_macBinary = 0;

const Common::FSNode gameDataDir(ConfMan.get("path"));
SearchMan.addSubDirectoryMatching(gameDataDir, "data");
SearchMan.addSubDirectoryMatching(gameDataDir, "install");
}

DirectorEngine::~DirectorEngine() {
Expand Down

0 comments on commit 5e08747

Please sign in to comment.