ASYLUM: improve detection

This commit is contained in:
alxpnv 2021-11-12 15:34:42 +03:00
parent 3e8a25b2fb
commit 9636dd5311
2 changed files with 2 additions and 14 deletions

View File

@ -73,18 +73,10 @@ AsylumEngine::AsylumEngine(OSystem *system, const ADGameDescription *gd) : Engin
_delayedVideoIndex = -1;
_previousScene = NULL;
// Game data
Common::String dataDir("data/");
if (checkGameVersion("Steam")) {
dataDir += getLanguageCode(getLanguage());
dataDir += '/';
}
// Add default search directories
const Common::FSNode gamePath(ConfMan.get("path"));
SearchMan.addSubDirectoryMatching(gamePath, dataDir);
SearchMan.addSubDirectoryMatching(gamePath, dataDir + "vids");
SearchMan.addSubDirectoryMatching(gamePath, dataDir + "music");
SearchMan.addSubDirectoryMatching(gamePath, "vids");
SearchMan.addSubDirectoryMatching(gamePath, "music");
// Initialize random number source
_rnd = new Common::RandomSource("asylum");

View File

@ -28,10 +28,6 @@ static const PlainGameDescriptor asylumGames[] = {
namespace Asylum {
static const char *directoryGlobs[] = {
"Data",
"DE",
"EN",
"FR",
"Vids",
0
};