2020-11-21 08:21:10 -08:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AGS_DETECTION_H
|
|
|
|
#define AGS_DETECTION_H
|
|
|
|
|
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
|
|
|
namespace AGS {
|
|
|
|
|
2021-05-22 13:45:21 +02:00
|
|
|
enum AGSDebugChannels {
|
|
|
|
kDebugGraphics = 1 << 0,
|
|
|
|
kDebugPath = 1 << 1,
|
|
|
|
kDebugScan = 1 << 2,
|
|
|
|
kDebugFilePath = 1 << 3,
|
|
|
|
kDebugScript = 1 << 4
|
|
|
|
};
|
|
|
|
|
2021-08-07 20:26:34 -07:00
|
|
|
enum GameFlag {
|
|
|
|
GAMEFLAG_FORCE_AA = 1
|
|
|
|
};
|
|
|
|
|
2021-01-24 10:08:42 -08:00
|
|
|
struct PluginVersion {
|
|
|
|
const char *_plugin;
|
|
|
|
int _version;
|
|
|
|
};
|
|
|
|
|
2020-11-21 08:21:10 -08:00
|
|
|
struct AGSGameDescription {
|
|
|
|
ADGameDescription desc;
|
2021-01-24 10:08:42 -08:00
|
|
|
const PluginVersion *_plugins;
|
2020-11-21 08:21:10 -08:00
|
|
|
};
|
|
|
|
|
2021-01-30 18:54:39 -08:00
|
|
|
extern const PlainGameDescriptor GAME_NAMES[];
|
|
|
|
|
|
|
|
extern const AGSGameDescription GAME_DESCRIPTIONS[];
|
|
|
|
|
2021-04-05 18:51:02 -07:00
|
|
|
enum AGSSteamVersion { kAGSteam = 0, kWadjetEye = 1 };
|
2021-03-06 20:54:37 +00:00
|
|
|
enum AGSSpriteFontVersion { kAGSSpriteFont = 0, kClifftopGames = 1 };
|
2021-02-13 15:01:50 -08:00
|
|
|
|
2020-11-21 08:21:10 -08:00
|
|
|
} // namespace AGS
|
|
|
|
|
2021-01-30 10:22:31 -08:00
|
|
|
|
2020-11-21 08:21:10 -08:00
|
|
|
class AGSMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2021-01-30 10:22:31 -08:00
|
|
|
mutable Common::String _gameid;
|
|
|
|
mutable Common::String _extra;
|
|
|
|
mutable Common::String _filename;
|
2021-02-02 20:45:09 -08:00
|
|
|
mutable Common::String _md5;
|
2021-01-30 10:22:31 -08:00
|
|
|
|
2021-05-22 13:45:21 +02:00
|
|
|
static const DebugChannelDef debugFlagList[];
|
|
|
|
|
2020-11-21 08:21:10 -08:00
|
|
|
public:
|
|
|
|
AGSMetaEngineDetection();
|
|
|
|
~AGSMetaEngineDetection() override {}
|
|
|
|
|
2021-01-22 18:49:55 -08:00
|
|
|
const char *getEngineId() const override {
|
2020-11-21 08:21:10 -08:00
|
|
|
return "ags";
|
|
|
|
}
|
|
|
|
|
2021-01-22 18:49:55 -08:00
|
|
|
const char *getName() const override {
|
2020-11-21 08:21:10 -08:00
|
|
|
return "Adventure Game Studio";
|
|
|
|
}
|
|
|
|
|
2021-01-22 18:49:55 -08:00
|
|
|
const char *getOriginalCopyright() const override {
|
2021-01-30 10:22:31 -08:00
|
|
|
return "AGS Engine (C) Chris Jones";
|
2020-11-21 08:21:10 -08:00
|
|
|
}
|
2021-01-30 10:22:31 -08:00
|
|
|
|
2021-05-15 19:42:25 +08:00
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
|
|
|
|
2021-04-17 22:19:16 +01:00
|
|
|
DetectedGames detectGames(const Common::FSList &fslist) const override;
|
|
|
|
|
2021-06-10 20:33:00 +08:00
|
|
|
ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist, ADDetectedGameExtraInfo **extra = nullptr) const override;
|
2021-04-19 22:29:31 +01:00
|
|
|
|
|
|
|
bool canPlayUnknownVariants() const override {
|
|
|
|
return true;
|
|
|
|
}
|
2021-05-04 11:45:03 +03:00
|
|
|
|
2021-02-14 19:15:21 +00:00
|
|
|
GUI::OptionsContainerWidget *buildEngineOptionsWidgetStatic(GUI::GuiObject *boss, const Common::String &name, const Common::String &target) const override;
|
2020-11-21 08:21:10 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|