Ticket #8859: manhole.diff
File manhole.diff, 2.9 KB (added by , 16 years ago) |
---|
-
detection.cpp
61 61 } 62 62 63 63 static const PlainGameDescriptor madeGames[] = { 64 {"made", "MADE engine game"}, 64 {"made", "MADE engine game"}, 65 {"manhole", "The Manhole"}, 65 66 {"rtz", "Return to Zork"}, 66 67 {0, 0} 67 68 }; … … 83 84 Common::kPlatformPC, 84 85 Common::ADGF_NO_FLAGS 85 86 }, 87 GID_RTZ, 86 88 0, 87 0,88 89 GF_CD, 89 90 0, 90 91 }, … … 99 100 Common::kPlatformPC, 100 101 Common::ADGF_NO_FLAGS 101 102 }, 103 GID_RTZ, 102 104 0, 103 0,104 105 GF_CD_COMPRESSED, 105 106 0, 106 107 }, … … 115 116 Common::kPlatformPC, 116 117 Common::ADGF_NO_FLAGS 117 118 }, 119 GID_RTZ, 118 120 0, 119 0,120 121 GF_CD_COMPRESSED, 121 122 0, 122 123 }, … … 132 133 Common::kPlatformPC, 133 134 Common::ADGF_NO_FLAGS 134 135 }, 136 GID_RTZ, 135 137 0, 136 0,137 138 GF_FLOPPY, 138 139 0, 139 140 }, … … 148 149 Common::kPlatformPC, 149 150 Common::ADGF_DEMO 150 151 }, 152 GID_RTZ, 151 153 0, 152 0,153 154 GF_DEMO, 154 155 0, 155 156 }, 157 158 { 159 // The Manhole: New and Enhanced 160 { 161 "manhole", 162 "", 163 AD_ENTRY1("manhole.dat", "cb21e31ed35c963208343bc995225b73"), 164 Common::EN_ANY, 165 Common::kPlatformPC, 166 Common::ADGF_NO_FLAGS 167 }, 168 GID_MANHOLE, 169 0, 170 GF_CD, 171 0, 172 }, 156 173 157 174 { AD_TABLE_END_MARKER, 0, 0, 0, 0 } 158 175 }; -
made.cpp
159 159 160 160 for (int i = 0; i < ARRAYSIZE(_timers); i++) 161 161 _timers[i] = -1; 162 163 if (getFeatures() & GF_DEMO) { 164 _dat->open("demo.dat"); 165 _res->open("demo.prj"); 166 } else if (getFeatures() & GF_CD) { 167 _dat->open("rtzcd.dat"); 168 _res->open("rtzcd.prj"); 169 } else if (getFeatures() & GF_CD_COMPRESSED) { 170 _dat->openFromRed("rtzcd.red", "rtzcd.dat"); 171 _res->open("rtzcd.prj"); 172 } else if (getFeatures() & GF_FLOPPY) { 173 _dat->open("rtz.dat"); 174 _res->open("rtz.prj"); 162 163 if (getGameID() == GID_RTZ) { 164 if (getFeatures() & GF_DEMO) { 165 _dat->open("demo.dat"); 166 _res->open("demo.prj"); 167 } else if (getFeatures() & GF_CD) { 168 _dat->open("rtzcd.dat"); 169 _res->open("rtzcd.prj"); 170 } else if (getFeatures() & GF_CD_COMPRESSED) { 171 _dat->openFromRed("rtzcd.red", "rtzcd.dat"); 172 _res->open("rtzcd.prj"); 173 } else if (getFeatures() & GF_FLOPPY) { 174 _dat->open("rtz.dat"); 175 _res->open("rtz.prj"); 176 } else { 177 error("Unknown RTZ game features"); 178 } 179 } else if (getGameID() == GID_MANHOLE) { 180 _dat->open("manhole.dat"); 181 _res->open("manhole.prj"); 175 182 } else { 176 error ("Unknown game features");183 error ("Unknown MADE game"); 177 184 } 178 185 179 186 _eventMouseX = _eventMouseY = 0; -
made.h
47 47 48 48 namespace Made { 49 49 50 enum MadeGameID { 51 GID_RTZ = 0, 52 GID_MANHOLE = 1 53 }; 54 50 55 enum MadeGameFeatures { 51 56 GF_DEMO = 1 << 0, 52 57 GF_CD = 1 << 1,