mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
ASYLUM: improve detection
This commit is contained in:
parent
3e8a25b2fb
commit
9636dd5311
@ -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");
|
||||
|
@ -28,10 +28,6 @@ static const PlainGameDescriptor asylumGames[] = {
|
||||
namespace Asylum {
|
||||
|
||||
static const char *directoryGlobs[] = {
|
||||
"Data",
|
||||
"DE",
|
||||
"EN",
|
||||
"FR",
|
||||
"Vids",
|
||||
0
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user