Ticket #3860: tinsel-4flags.patch

File tinsel-4flags.patch, 1.2 KB (added by fingolfin, 16 years ago)

Patch for detecting the 4FLAGS version

  • engines/tinsel/tinsel.h

     
    5555        GF_DEMO = 1 << 0,
    5656        GF_CD = 1 << 1,
    5757        GF_FLOPPY = 1 << 2,
    58         GF_SCNFILES = 1 << 3
     58        GF_SCNFILES = 1 << 3,
     59
     60        GF_USE_3FLAGS = 1 << 4,
     61        GF_USE_4FLAGS = 1 << 5,
     62        GF_USE_5FLAGS = 1 << 6
    5963};
    6064
    6165enum TinselEngineVersion {
  • engines/tinsel/detection.cpp

     
    130130                TINSEL_V1,
    131131        },
    132132
     133        {       // Multilingual CD with english speech and *.gra files.
     134                // Note: It contains no english subtitles.
     135                {
     136                        "dw",
     137                        "CD",
     138                        {
     139                                {"dw.gra", 0, "c8808ccd988d603dd35dff42013ae7fd", 781656},
     140                                {"english.smp", 0, NULL, -1},
     141                                {"french.txt", 0, NULL, -1},
     142                                {"german.txt", 0, NULL, -1},
     143                                {"italian.txt", 0, NULL, -1},
     144                                {"spanish.txt", 0, NULL, -1},
     145                                {NULL, 0, NULL, 0}
     146                        },
     147                        Common::UNK_LANG,
     148                        Common::kPlatformPC,
     149                        Common::ADGF_NO_FLAGS
     150                },
     151                GID_DW1,
     152                0,
     153                GF_CD | GF_USE_4FLAGS,
     154                TINSEL_V1,
     155        },
     156
    133157        {       // English CD with SCN files
    134158                {
    135159                        "dw",