scummvm/engines/mads/detection.h
Le Philousophe 7e0048b4a3 ENGINES: Add ADDynamicGameDescription class
This class manages a buffer where all data usually stored in detection
plugin will get copied before unloading the plugin and starting the
game.

This class expects that two functions are present in every
GameDescription: sizeBuffer which calculates how many bytes we will need
to store the entry in RAM and toBuffer which copies the data in the
buffer and fix the pointers in the class.
At the end, it is expected that an ADDynamicGameDescription doesn't
depend anymore on data stored in the detection plugin.

The AD_GAME_DESCRIPTION_HELPERS macro allow to implement these functions
in all GameDescription which don't have any pointer except those in
ADGameDescription.
2024-06-30 18:39:06 +02:00

65 lines
1.7 KiB
C++

/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*
*/
#ifndef MADS_DETECTION_H
#define MADS_DETECTION_H
#include "engines/advancedDetector.h"
namespace MADS {
enum {
GType_RexNebular = 0,
GType_Dragonsphere = 1,
GType_Phantom = 2,
GType_Forest = 3
};
enum {
GF_INSTALLER = 1
};
struct MADSGameDescription {
AD_GAME_DESCRIPTION_HELPERS(desc);
ADGameDescription desc;
int gameID;
uint32 features;
};
#define GAMEOPTION_EASY_MOUSE GUIO_GAMEOPTIONS1
#define GAMEOPTION_ANIMATED_INVENTORY GUIO_GAMEOPTIONS2
#define GAMEOPTION_ANIMATED_INTERFACE GUIO_GAMEOPTIONS3
#define GAMEOPTION_NAUGHTY_MODE GUIO_GAMEOPTIONS4
#ifdef USE_TTS
#define GAMEOPTION_TTS_NARRATOR GUIO_GAMEOPTIONS5
#endif
#define GAMEOPTION_COPY_PROTECTION GUIO_GAMEOPTIONS6
//#define GAMEOPTION_GRAPHICS_DITHERING GUIO_GAMEOPTIONS7
} // End of namespace MADS
#endif // MADS_DETECTION_H