Ticket #3021: advdetector_no_const.diff

File advdetector_no_const.diff, 1.2 KB (added by cyxx, 18 years ago)
  • common/advancedDetector.h

     
    3232
    3333struct ADGameFileDescription {
    3434        const char *fileName;
    35         uint16 fileType;      // Optional. Not used during detection, only by engines.
    36         const char *md5;      // Optional. May be NULL.
    37         const int32 fileSize; // Optional. Set to -1 to ignore.
     35        uint16 fileType; // Optional. Not used during detection, only by engines.
     36        const char *md5; // Optional. May be NULL.
     37        int32 fileSize; // Optional. Set to -1 to ignore.
    3838};
    3939
    4040struct ADGameDescription {
    4141        const char *gameid;
    4242        const char *extra;
    43         const ADGameFileDescription filesDescriptions[14];
     43        ADGameFileDescription filesDescriptions[14];
    4444        Language language;
    4545        Platform platform;
    4646};
     
    5959        // Pointer to ADGameDescription or its superset structure
    6060        const byte *descs;
    6161        // Size of that superset structure
    62         const int descItemSize;
     62        int descItemSize;
    6363        // Number of bytes to compute MD5 sum for
    64         const int md5Bytes;
     64        int md5Bytes;
    6565        // List of all engine targets
    6666        const PlainGameDescriptor *list;
    6767        // Structure for autoupgrading obsolete targets (optional)