DIRECTOR: Add target for a test archive

This commit is contained in:
Scott Percival 2019-12-04 21:41:29 +08:00
parent 8fe023ebce
commit 127c346816
4 changed files with 19 additions and 2 deletions

View File

@ -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" },

View File

@ -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),

View File

@ -45,7 +45,8 @@ namespace Director {
enum DirectorGameID {
GID_GENERIC,
GID_TEST
GID_TEST,
GID_ARCHIVE
};
class Archive;

View File

@ -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);