AGOS: Allow detecting games from disabled subengines
This commit is contained in:
parent
4ced49acd4
commit
ba8551b3ae
4 changed files with 7 additions and 4 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "common/savefile.h"
|
||||
#include "common/system.h"
|
||||
#include "common/installshield_cab.h"
|
||||
#include "common/translation.h"
|
||||
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "engines/obsolete.h"
|
||||
|
@ -97,6 +98,10 @@ Common::Error AgosMetaEngine::createInstance(OSystem *syst, Engine **engine, con
|
|||
else
|
||||
*engine = new AGOS::AGOSEngine_PuzzlePack(syst, gd);
|
||||
break;
|
||||
#else
|
||||
case AGOS::GType_FF:
|
||||
case AGOS::GType_PP:
|
||||
return Common::Error(Common::kUnsupportedGameidError, _s("AGOS 2 support is not compiled in"));
|
||||
#endif
|
||||
default:
|
||||
return Common::kUnsupportedGameidError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue