mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 21:55:27 +00:00
ACCESS: Add detection entry and subfolder adding for CD version
This commit is contained in:
parent
5a3dfb1a7b
commit
814d4ebdd0
@ -154,6 +154,18 @@ void AccessEngine::initialize() {
|
||||
DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts");
|
||||
DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling");
|
||||
|
||||
if (isCD()) {
|
||||
const Common::FSNode gameDataDir(ConfMan.get("path"));
|
||||
const Common::FSNode cdromDir = gameDataDir.getChild("cdrom");
|
||||
|
||||
for (int idx = 0; idx < 15; ++idx) {
|
||||
Common::String folder = (idx == 0) ? "game" :
|
||||
Common::String::format("chap%.2d", idx);
|
||||
SearchMan.addSubDirectoryMatching(cdromDir, folder);
|
||||
}
|
||||
}
|
||||
|
||||
// Create sub-objects of the engine
|
||||
_debugger = new Debugger(this);
|
||||
_events = new EventsManager(this);
|
||||
_files = new FileManager(this);
|
||||
|
@ -200,6 +200,7 @@ public:
|
||||
virtual ~AccessEngine();
|
||||
|
||||
uint32 getFeatures() const;
|
||||
bool isCD() const;
|
||||
Common::Language getLanguage() const;
|
||||
Common::Platform getPlatform() const;
|
||||
uint16 getVersion() const;
|
||||
|
@ -56,6 +56,10 @@ uint32 AccessEngine::getFeatures() const {
|
||||
return _gameDescription->desc.flags;
|
||||
}
|
||||
|
||||
bool AccessEngine::isCD() const {
|
||||
return (bool)(_gameDescription->desc.flags & ADGF_CD);
|
||||
}
|
||||
|
||||
Common::Language AccessEngine::getLanguage() const {
|
||||
return _gameDescription->desc.language;
|
||||
}
|
||||
|
@ -41,6 +41,24 @@ static const AccessGameDescription gameDescriptions[] = {
|
||||
0
|
||||
},
|
||||
|
||||
{
|
||||
// Amazon Guadians of Eden - CD English
|
||||
{
|
||||
"amazon",
|
||||
"CD",
|
||||
{
|
||||
{ "checksum.crc", 0, "bef85478132fec74cb5d9067f3a37d24", 8 },
|
||||
AD_LISTEND
|
||||
},
|
||||
Common::EN_ANY,
|
||||
Common::kPlatformDOS,
|
||||
ADGF_CD,
|
||||
GUIO1(GUIO_NONE)
|
||||
},
|
||||
GType_Amazon,
|
||||
0
|
||||
},
|
||||
|
||||
{ AD_TABLE_END_MARKER, 0, 0 }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user