TONY: Add support for using the compressed version of the demo

This commit is contained in:
Matthew Hoops 2012-05-28 16:56:31 -04:00
parent ab45e72e67
commit 6e104f0883
4 changed files with 39 additions and 1 deletions

View file

@ -32,9 +32,12 @@
#include "tony/tony.h"
#include "tony/game.h"
namespace Tony {
enum {
GF_COMPRESSED = (1 << 0)
};
struct TonyGameDescription {
ADGameDescription desc;
};
@ -51,8 +54,12 @@ bool TonyEngine::getIsDemo() const {
return _gameDescription->desc.flags & ADGF_DEMO;
}
bool TonyEngine::isCompressed() const {
return _gameDescription->desc.flags & GF_COMPRESSED;
}
} // End of namespace Tony
static const PlainGameDescriptor tonyGames[] = {
{"tony", "Tony Tough and the Night of Roasted Moths"},
{0, 0}