ZVISION: Make use of the ADGF_DVD flag

This commit is contained in:
Cameron Cawley 2024-07-05 17:58:03 +01:00 committed by Filippos Karapetis
parent c3dc4e00fd
commit d2996b9ed2
4 changed files with 3 additions and 7 deletions

View File

@ -32,10 +32,6 @@ enum ZVisionGameId {
GID_GRANDINQUISITOR = 2
};
enum ZVisionFeatures {
GF_DVD = (1 << 0) // ZGI DVD version
};
struct ZVisionGameDescription {
AD_GAME_DESCRIPTION_HELPERS(desc);

View File

@ -233,7 +233,7 @@ static const ZVisionGameDescription gameDescriptions[] = {
AD_ENTRY1s("SCRIPTS.ZFS", "03157a3399513bfaaf8dc6d5ab798b36", 8433326),
Common::EN_ANY,
Common::kPlatformWindows,
GF_DVD,
ADGF_DVD,
#if defined(USE_MPEG2) && defined(USE_A52)
GUIO4(GAMEOPTION_ORIGINAL_SAVELOAD, GAMEOPTION_DOUBLE_FPS, GAMEOPTION_DISABLE_ANIM_WHILE_TURNING, GAMEOPTION_USE_HIRES_MPEG_MOVIES)
#else

View File

@ -109,7 +109,7 @@ void ScriptManager::parsePuzzle(Puzzle *puzzle, Common::SeekableReadStream &stre
//
// Note that the bug only affects the DVD version. The CD
// version doesn't have a separate room for the cutscene.
else if (_engine->getGameId() == GID_GRANDINQUISITOR && (_engine->getFeatures() & GF_DVD) && puzzle->key == 10836)
else if (_engine->getGameId() == GID_GRANDINQUISITOR && (_engine->getFeatures() & ADGF_DVD) && puzzle->key == 10836)
puzzle->resultActions.push_front(new ActionAssign(_engine, 11, "10803, 0"));
} else if (line.matchString("flags {", true)) {
setStateFlag(puzzle->key, parseFlags(stream));

View File

@ -197,7 +197,7 @@ void ZVision::initialize() {
modes.push_back(Graphics::Mode(WINDOW_WIDTH, WINDOW_HEIGHT));
#if defined(USE_MPEG2) && defined(USE_A52)
// For the DVD version of ZGI we can play high resolution videos
if (getGameId() == GID_GRANDINQUISITOR && (getFeatures() & GF_DVD))
if (getGameId() == GID_GRANDINQUISITOR && (getFeatures() & ADGF_DVD))
modes.push_back(Graphics::Mode(HIRES_WINDOW_WIDTH, HIRES_WINDOW_HEIGHT));
#endif
initGraphicsModes(modes);