|
|
@@ -41,10 +41,10 @@ class FSList; |
|
|
* enable detection. |
|
|
*/ |
|
|
struct ADGameFileDescription { |
|
|
const char *fileName; ///< Name of described file. |
|
|
uint16 fileType; ///< Optional. Not used during detection, only by engines. |
|
|
const char *md5; ///< MD5 of (the beginning of) the described file. Optional. Set to NULL to ignore. |
|
|
int32 fileSize; ///< Size of the described file. Set to -1 to ignore. |
|
|
const char *fileName; ///< Name of described file. |
|
|
uint16 fileType; ///< Optional. Not used during detection, only by engines. |
|
|
const char *md5; ///< MD5 of (the beginning of) the described file. Optional. Set to NULL to ignore. |
|
|
int32 fileSize; ///< Size of the described file. Set to -1 to ignore. |
|
|
}; |
|
|
|
|
|
/** |
|
|
@@ -80,18 +80,18 @@ typedef Common::HashMap<Common::String, ADFileProperties, Common::IgnoreCase_Has |
|
|
#define AD_ENTRY1s(f, x, s) {{ f, 0, x, s}, AD_LISTEND} |
|
|
|
|
|
enum ADGameFlags { |
|
|
ADGF_NO_FLAGS = 0, |
|
|
ADGF_AUTOGENTARGET = (1 << 20), // automatically generate gameid from extra |
|
|
ADGF_UNSTABLE = (1 << 21), // flag to designate not yet officially-supported games that are not fit for public testing |
|
|
ADGF_TESTING = (1 << 22), // flag to designate not yet officially-supported games that are fit for public testing |
|
|
ADGF_PIRATED = (1 << 23), ///< flag to designate well known pirated versions with cracks |
|
|
ADGF_ADDENGLISH = (1 << 24), ///< always add English as language option |
|
|
ADGF_MACRESFORK = (1 << 25), ///< the md5 for this entry will be calculated from the resource fork |
|
|
ADGF_NO_FLAGS = 0, |
|
|
ADGF_AUTOGENTARGET = (1 << 20), ///< automatically generate gameid from extra |
|
|
ADGF_UNSTABLE = (1 << 21), ///< flag to designate not yet officially-supported games that are not fit for public testing |
|
|
ADGF_TESTING = (1 << 22), ///< flag to designate not yet officially-supported games that are fit for public testing |
|
|
ADGF_PIRATED = (1 << 23), ///< flag to designate well known pirated versions with cracks |
|
|
ADGF_ADDENGLISH = (1 << 24), ///< always add English as language option |
|
|
ADGF_MACRESFORK = (1 << 25), ///< the md5 for this entry will be calculated from the resource fork |
|
|
ADGF_USEEXTRAASTITLE = (1 << 26), ///< Extra field value will be used as main game title, not gameid |
|
|
ADGF_DROPLANGUAGE = (1 << 27), ///< don't add language to gameid |
|
|
ADGF_DROPPLATFORM = (1 << 28), ///< don't add platform to gameid |
|
|
ADGF_CD = (1 << 29), ///< add "-cd" to gameid |
|
|
ADGF_DEMO = (1 << 30) ///< add "-demo" to gameid |
|
|
ADGF_DROPLANGUAGE = (1 << 27), ///< don't add language to gameid |
|
|
ADGF_DROPPLATFORM = (1 << 28), ///< don't add platform to gameid |
|
|
ADGF_CD = (1 << 29), ///< add "-cd" to gameid |
|
|
ADGF_DEMO = (1 << 30) ///< add "-demo" to gameid |
|
|
}; |
|
|
|
|
|
struct ADGameDescription { |
|
|
|