HDB: Add isDemo()

This commit is contained in:
Nipun Garg 2019-06-19 03:36:46 +05:30 committed by Eugene Sandulenko
parent f5a695191b
commit 159e50c82f
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,13 @@ uint32 HDBGame::getGameFlags() const {
return _gameDescription->flags;
}
int HDBGame::isDemo() const {
if (getGameFlags() & ADGF_DEMO) {
return 1;
}
return 0;
}
} // End of namespace HDB
static const PlainGameDescriptor hdbGames[] = {

View File

@ -92,6 +92,7 @@ public:
const char *getGameFile() const;
uint32 getGameFlags() const;
Common::Platform getPlatform() const;
int isDemo() const;
/*
Game System Pointers