mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
DIRECTOR: Add target for a test archive
This commit is contained in:
parent
8fe023ebce
commit
127c346816
@ -73,6 +73,7 @@ bool DirectorEngine::hasFeature(EngineFeature f) const {
|
||||
static const PlainGameDescriptor directorGames[] = {
|
||||
{ "director", "Macromedia Director Game" },
|
||||
{ "directortest", "Macromedia Director Test Target" },
|
||||
{ "directortestarch", "Macromedia Director Test Archive" },
|
||||
{ "theapartment", "The Apartment, Interactive demo" },
|
||||
{ "gundam0079", "Gundam 0079: The War for Earth" },
|
||||
{ "jewels", "Jewels of the Oracle" },
|
||||
|
@ -46,6 +46,19 @@ static const DirectorGameDescription gameDescriptions[] = {
|
||||
GID_TEST,
|
||||
3
|
||||
},
|
||||
{
|
||||
{
|
||||
"directortestarch",
|
||||
"",
|
||||
AD_ENTRY1("test.dir", 0),
|
||||
Common::EN_ANY,
|
||||
Common::kPlatformWindows,
|
||||
ADGF_NO_FLAGS,
|
||||
GUIO1(GUIO_NOASPECT)
|
||||
},
|
||||
GID_ARCHIVE,
|
||||
4
|
||||
},
|
||||
|
||||
// Generic D3 Mac entry
|
||||
MACGAME("director", "", "D3-mac", 0, -1, 3),
|
||||
|
@ -45,7 +45,8 @@ namespace Director {
|
||||
|
||||
enum DirectorGameID {
|
||||
GID_GENERIC,
|
||||
GID_TEST
|
||||
GID_TEST,
|
||||
GID_ARCHIVE
|
||||
};
|
||||
|
||||
class Archive;
|
||||
|
@ -48,7 +48,9 @@ Archive *DirectorEngine::createArchive() {
|
||||
}
|
||||
|
||||
void DirectorEngine::loadInitialMovie(const Common::String movie) {
|
||||
if (getPlatform() == Common::kPlatformWindows)
|
||||
if (getGameID() == GID_ARCHIVE)
|
||||
openMainArchive(movie);
|
||||
else if (getPlatform() == Common::kPlatformWindows)
|
||||
loadEXE(movie);
|
||||
else
|
||||
loadMac(movie);
|
||||
|
Loading…
Reference in New Issue
Block a user