2020-08-03 04:25:11 +05:30
|
|
|
/* 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.
|
|
|
|
*
|
2021-12-26 18:47:58 +01:00
|
|
|
* 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.
|
2020-08-03 04:25:11 +05:30
|
|
|
*
|
|
|
|
* 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
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2020-08-03 04:25:11 +05:30
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-08-03 04:30:58 +05:30
|
|
|
#ifndef AGI_DETECTION_H
|
|
|
|
#define AGI_DETECTION_H
|
2020-08-03 04:25:11 +05:30
|
|
|
|
2020-08-26 16:41:04 +05:30
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
2020-08-03 04:25:11 +05:30
|
|
|
namespace Agi {
|
|
|
|
|
2020-08-26 16:41:04 +05:30
|
|
|
enum AgiGameType {
|
|
|
|
GType_PreAGI = 0,
|
|
|
|
GType_V1 = 1,
|
|
|
|
GType_V2 = 2,
|
|
|
|
GType_V3 = 3
|
|
|
|
};
|
|
|
|
|
|
|
|
enum AgiGameID {
|
|
|
|
GID_AGIDEMO,
|
|
|
|
GID_BC,
|
|
|
|
GID_DDP,
|
AGI: Add support for Mac Manhunter games
Macintosh versions of GR and MH1-2 use the same combined directory
filename convention as DOS, Atari ST and Apple IIgs (but not Amiga or
CoCo3). However, the filename convention for volumes uses the common
AGI v2 format, without a game id prefix.
Example:
DOS: GRDIR, GRVOL.x
Mac: GRDIR, VOL.x
To account for this, we'll use the following:
1. Rather than take the directory filename prefix from volume files,
we now get this from the directory files themselves (which makes
more sense anyway).
2. Later, when loading individual volumes, check for Mac platform and
exclude the prefix from the path.
This improves the previous single game check for Mac Gold Rush, which
formed directory and volume paths for that game only. This check is
now obsolete and has been removed. The detection flag that was used to
invoke the workaround has also been removed.
2022-01-05 18:50:55 -05:00
|
|
|
GID_GOLDRUSH, // V3
|
2020-08-26 16:41:04 +05:30
|
|
|
GID_KQ1,
|
|
|
|
GID_KQ2,
|
|
|
|
GID_KQ3,
|
|
|
|
GID_KQ4,
|
|
|
|
GID_LSL1,
|
AGI: Add support for Mac Manhunter games
Macintosh versions of GR and MH1-2 use the same combined directory
filename convention as DOS, Atari ST and Apple IIgs (but not Amiga or
CoCo3). However, the filename convention for volumes uses the common
AGI v2 format, without a game id prefix.
Example:
DOS: GRDIR, GRVOL.x
Mac: GRDIR, VOL.x
To account for this, we'll use the following:
1. Rather than take the directory filename prefix from volume files,
we now get this from the directory files themselves (which makes
more sense anyway).
2. Later, when loading individual volumes, check for Mac platform and
exclude the prefix from the path.
This improves the previous single game check for Mac Gold Rush, which
formed directory and volume paths for that game only. This check is
now obsolete and has been removed. The detection flag that was used to
invoke the workaround has also been removed.
2022-01-05 18:50:55 -05:00
|
|
|
GID_MH1, // V3
|
|
|
|
GID_MH2, // V3
|
2020-08-26 16:41:04 +05:30
|
|
|
GID_MIXEDUP,
|
|
|
|
GID_PQ1,
|
|
|
|
GID_SQ1,
|
|
|
|
GID_SQ2,
|
|
|
|
GID_XMASCARD,
|
|
|
|
GID_FANMADE,
|
|
|
|
GID_GETOUTTASQ, // Fanmade
|
|
|
|
GID_MICKEY, // PreAGI
|
|
|
|
GID_WINNIE, // PreAGI
|
|
|
|
GID_TROLL // PreAGI
|
|
|
|
};
|
|
|
|
|
|
|
|
//
|
|
|
|
// GF_OLDAMIGAV20 means that the interpreter is an old Amiga AGI interpreter that
|
|
|
|
// uses value 20 for the computer type (v20 i.e. vComputer) rather than the usual value 5.
|
|
|
|
//
|
|
|
|
enum AgiGameFeatures {
|
|
|
|
GF_AGIMOUSE = (1 << 0), // this disables "Click-to-walk mouse interface"
|
|
|
|
GF_AGDS = (1 << 1),
|
|
|
|
GF_AGI256 = (1 << 2), // marks fanmade AGI-256 games
|
AGI: Add support for Mac Manhunter games
Macintosh versions of GR and MH1-2 use the same combined directory
filename convention as DOS, Atari ST and Apple IIgs (but not Amiga or
CoCo3). However, the filename convention for volumes uses the common
AGI v2 format, without a game id prefix.
Example:
DOS: GRDIR, GRVOL.x
Mac: GRDIR, VOL.x
To account for this, we'll use the following:
1. Rather than take the directory filename prefix from volume files,
we now get this from the directory files themselves (which makes
more sense anyway).
2. Later, when loading individual volumes, check for Mac platform and
exclude the prefix from the path.
This improves the previous single game check for Mac Gold Rush, which
formed directory and volume paths for that game only. This check is
now obsolete and has been removed. The detection flag that was used to
invoke the workaround has also been removed.
2022-01-05 18:50:55 -05:00
|
|
|
GF_FANMADE = (1 << 3), // marks fanmade games
|
|
|
|
GF_OLDAMIGAV20 = (1 << 4),
|
2022-09-14 10:06:34 -07:00
|
|
|
GF_2GSOLDSOUND = (1 << 5),
|
|
|
|
GF_EXTCHAR = (1 << 6) // use WORDS.TOK.EXTENDED
|
2020-08-26 16:41:04 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
enum BooterDisks {
|
|
|
|
BooterDisk1 = 0,
|
|
|
|
BooterDisk2 = 1
|
|
|
|
};
|
|
|
|
|
2020-08-03 04:25:11 +05:30
|
|
|
struct AGIGameDescription {
|
|
|
|
ADGameDescription desc;
|
|
|
|
|
|
|
|
int gameID;
|
|
|
|
int gameType;
|
|
|
|
uint32 features;
|
|
|
|
uint16 version;
|
|
|
|
};
|
|
|
|
|
2022-11-03 18:34:19 +00:00
|
|
|
#define GAMEOPTION_ORIGINAL_SAVELOAD GUIO_GAMEOPTIONS1
|
|
|
|
#define GAMEOPTION_AMIGA_ALTERNATIVE_PALETTE GUIO_GAMEOPTIONS2
|
|
|
|
#define GAMEOPTION_DISABLE_MOUSE GUIO_GAMEOPTIONS3
|
|
|
|
#define GAMEOPTION_USE_HERCULES_FONT GUIO_GAMEOPTIONS4
|
|
|
|
#define GAMEOPTION_COMMAND_PROMPT_WINDOW GUIO_GAMEOPTIONS5
|
|
|
|
#define GAMEOPTION_APPLE2GS_ADD_SPEED_MENU GUIO_GAMEOPTIONS6
|
|
|
|
// TODO: properly implement GAMEOPTIONs
|
|
|
|
|
2020-08-03 04:25:11 +05:30
|
|
|
} // End of namespace Agi
|
2020-08-03 04:30:58 +05:30
|
|
|
|
|
|
|
#endif // AGI_DETECTION_H
|