Changeset 348
- Timestamp:
- Jun 10, 2009, 2:04:27 PM (15 years ago)
- Location:
- Daodan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan.c
r347 r348 24 24 bool patch_largetextures = true; 25 25 bool patch_pathfinding = true; 26 bool patch_levelplugins = true; 26 27 bool patch_projaware = true; 28 bool patch_directinput = true; 27 29 bool patch_wpfadetime = true; 28 30 bool patch_kickguns = false; … … 37 39 bool patch_daodandisplayenum = true; 38 40 bool patch_usegettickcount = true; 41 bool patch_cheatsenabled = true; 39 42 bool patch_usedaodangl = false; 40 43 … … 55 58 56 59 // Non-"_Final" levels are now valid 57 DDrPatch_Byte (OniExe + 0x000206a8, 0x01); 60 if (patch_levelplugins) 61 DDrPatch_Byte (OniExe + 0x000206a8, 0x01); 58 62 59 63 // Pathfinding grid cache size x8 … … 74 78 75 79 // Forced DirectInput (for Windows NT) 76 DDrPatch_Byte (OniExe + 0x00002e6d, 0xeb); 80 if (patch_directinput) 81 DDrPatch_Byte (OniExe + 0x00002e6d, 0xeb); 77 82 78 83 if (patch_wpfadetime) … … 178 183 else if (!stricmp(name, "projaware")) 179 184 patch_projaware = !stricmp(value, "true"); 185 else if (!stricmp(name, "levelplugins")) 186 patch_levelplugins = !stricmp(value, "true"); 187 else if (!stricmp(name, "directinput")) 188 patch_directinput = !stricmp(value, "true"); 180 189 else if (!stricmp(name, "wpfadetime")) 181 190 patch_wpfadetime = !stricmp(value, "true"); … … 200 209 else if (!stricmp(name, "usegettickcount")) 201 210 patch_usegettickcount = !stricmp(value, "true"); 211 else if (!stricmp(name, "cheatsenabled")) 212 patch_cheatsenabled = !stricmp(value, "true"); 202 213 else if (!stricmp(name, "usedaodangl")) 203 214 patch_usedaodangl = !stricmp(value, "true"); … … 222 233 else if (!stricmp(name, "blam")) 223 234 DDrPatch_StrDup(OniExe + 0x0010fb73, value); 235 else if (!stricmp(name, "shapeshifter_on")) 236 DDr_CheatTable[0].message_on = strdup(value); 237 else if (!stricmp(name, "shapeshifter_off")) 238 DDr_CheatTable[0].message_off = strdup(value); 239 else if (!stricmp(name, "liveforever_on")) 240 DDr_CheatTable[1].message_on = strdup(value); 241 else if (!stricmp(name, "liveforever_off")) 242 DDr_CheatTable[1].message_off = strdup(value); 243 else if (!stricmp(name, "touchofdeath_on")) 244 DDr_CheatTable[2].message_on = strdup(value); 245 else if (!stricmp(name, "touchofdeath_off")) 246 DDr_CheatTable[2].message_off = strdup(value); 247 else if (!stricmp(name, "canttouchthis_on")) 248 DDr_CheatTable[3].message_on = strdup(value); 249 else if (!stricmp(name, "canttouchthis_off")) 250 DDr_CheatTable[3].message_off = strdup(value); 251 else if (!stricmp(name, "fatloot_on")) 252 DDr_CheatTable[4].message_off = strdup(value); 224 253 else 225 254 DDrStartupMessage("unrecognised language item \"%s\"", name); … … 274 303 275 304 // Cheats always enabled 276 DDrPatch_MakeJump(ONrPersist_GetWonGame, DDrPersist_GetWonGame); 305 if (patch_cheatsenabled) 306 DDrPatch_MakeJump(ONrPersist_GetWonGame, DDrPersist_GetWonGame); 277 307 278 308 // Windowed mode
Note:
See TracChangeset
for help on using the changeset viewer.