| 194 |
|
{ |
| 195 |
|
case s_options: |
| 196 |
|
if (!stricmp(name, "usedaodanbsl")) |
| 197 |
< |
opt_usedaodanbsl = !stricmp(value, "true"); |
| 197 |
> |
opt_usedaodanbsl = !stricmp(inifile_cleanstr(value), "true"); |
| 198 |
|
break; |
| 199 |
|
case s_patch: |
| 200 |
|
if (!stricmp(name, "fonttexturecache")) |
| 201 |
< |
patch_fonttexturecache = !stricmp(value, "true"); |
| 201 |
> |
patch_fonttexturecache = !stricmp(inifile_cleanstr(value), "true"); |
| 202 |
|
else if (!stricmp(name, "largetextures")) |
| 203 |
< |
patch_largetextures = !stricmp(value, "true"); |
| 203 |
> |
patch_largetextures = !stricmp(inifile_cleanstr(value), "true"); |
| 204 |
|
else if (!stricmp(name, "levelplugins")) |
| 205 |
< |
patch_levelplugins = !stricmp(value, "true"); |
| 205 |
> |
patch_levelplugins = !stricmp(inifile_cleanstr(value), "true"); |
| 206 |
|
else if (!stricmp(name, "pathfinding")) |
| 207 |
< |
patch_pathfinding = !stricmp(value, "true"); |
| 207 |
> |
patch_pathfinding = !stricmp(inifile_cleanstr(value), "true"); |
| 208 |
|
else if (!stricmp(name, "projaware")) |
| 209 |
< |
patch_projaware = !stricmp(value, "true"); |
| 209 |
> |
patch_projaware = !stricmp(inifile_cleanstr(value), "true"); |
| 210 |
|
else if (!stricmp(name, "directinput")) |
| 211 |
< |
patch_directinput = !stricmp(value, "true"); |
| 211 |
> |
patch_directinput = !stricmp(inifile_cleanstr(value), "true"); |
| 212 |
|
else if (!stricmp(name, "wpfadetime")) |
| 213 |
< |
patch_wpfadetime = !stricmp(value, "true"); |
| 213 |
> |
patch_wpfadetime = !stricmp(inifile_cleanstr(value), "true"); |
| 214 |
|
else if (!stricmp(name, "kickguns")) |
| 215 |
< |
patch_kickguns = !stricmp(value, "true"); |
| 215 |
> |
patch_kickguns = !stricmp(inifile_cleanstr(value), "true"); |
| 216 |
|
else if (!stricmp(name, "cooldowntimer")) |
| 217 |
< |
patch_cooldowntimer = !stricmp(value, "true"); |
| 217 |
> |
patch_cooldowntimer = !stricmp(inifile_cleanstr(value), "true"); |
| 218 |
|
else if (!stricmp(name, "throwtest")) |
| 219 |
< |
patch_throwtest = !stricmp(value, "true"); |
| 219 |
> |
patch_throwtest = !stricmp(inifile_cleanstr(value), "true"); |
| 220 |
|
else if (!stricmp(name, "alttab")) |
| 221 |
< |
patch_alttab = !stricmp(value, "true"); |
| 221 |
> |
patch_alttab = !stricmp(inifile_cleanstr(value), "true"); |
| 222 |
|
else if (!stricmp(name, "particledisablebit")) |
| 223 |
< |
patch_particledisablebit = !stricmp(value, "true"); |
| 223 |
> |
patch_particledisablebit = !stricmp(inifile_cleanstr(value), "true"); |
| 224 |
|
else if (!stricmp(name, "multibyte")) |
| 225 |
< |
patch_multibyte = !stricmp(value, "true"); |
| 225 |
> |
patch_multibyte = !stricmp(inifile_cleanstr(value), "true"); |
| 226 |
|
else if (!stricmp(name, "cheattable")) |
| 227 |
< |
patch_cheattable = !stricmp(value, "true"); |
| 227 |
> |
patch_cheattable = !stricmp(inifile_cleanstr(value), "true"); |
| 228 |
|
else if (!stricmp(name, "argb8888")) |
| 229 |
< |
patch_argb8888 = !stricmp(value, "true"); |
| 229 |
> |
patch_argb8888 = !stricmp(inifile_cleanstr(value), "true"); |
| 230 |
|
else if (!stricmp(name, "safeprintf")) |
| 231 |
< |
patch_safeprintf = !stricmp(value, "true"); |
| 231 |
> |
patch_safeprintf = !stricmp(inifile_cleanstr(value), "true"); |
| 232 |
|
else if (!stricmp(name, "daodandisplayenum")) |
| 233 |
< |
patch_daodandisplayenum = !stricmp(value, "true"); |
| 233 |
> |
patch_daodandisplayenum = !stricmp(inifile_cleanstr(value), "true"); |
| 234 |
|
else if (!stricmp(name, "usegettickcount")) |
| 235 |
< |
patch_usegettickcount = !stricmp(value, "true"); |
| 235 |
> |
patch_usegettickcount = !stricmp(inifile_cleanstr(value), "true"); |
| 236 |
|
else if (!stricmp(name, "cheatsenabled")) |
| 237 |
< |
patch_cheatsenabled = !stricmp(value, "true"); |
| 237 |
> |
patch_cheatsenabled = !stricmp(inifile_cleanstr(value), "true"); |
| 238 |
|
else if (!stricmp(name, "usedaodangl")) |
| 239 |
< |
patch_usedaodangl = !stricmp(value, "true"); |
| 239 |
> |
patch_usedaodangl = !stricmp(inifile_cleanstr(value), "true"); |
| 240 |
|
else if (!stricmp(name, "windowhack")) |
| 241 |
< |
patch_windowhack = !stricmp(value, "true"); |
| 241 |
> |
patch_windowhack = !stricmp(inifile_cleanstr(value), "true"); |
| 242 |
|
else if (!stricmp(name, "daodaninit")) |
| 243 |
< |
patch_daodaninit = !stricmp(value, "true"); |
| 243 |
> |
patch_daodaninit = !stricmp(inifile_cleanstr(value), "true"); |
| 244 |
|
else if (!stricmp(name, "bsl")) |
| 245 |
< |
patch_bsl = !stricmp(value, "true"); |
| 245 |
> |
patch_bsl = !stricmp(inifile_cleanstr(value), "true"); |
| 246 |
|
else |
| 247 |
|
DDrStartupMessage("unrecognised patch \"%s\"", name); |
| 248 |
|
break; |
| 249 |
– |
case s_bsl: |
| 250 |
– |
|
| 251 |
– |
break; |
| 249 |
|
case s_language: |
| 250 |
|
if (!stricmp(name, "savepoint")) |
| 251 |
|
{ |
| 354 |
|
else |
| 355 |
|
DDrStartupMessage("unrecognised language item \"%s\"", name); |
| 356 |
|
break; |
| 357 |
+ |
case s_bsl: |
| 358 |
|
default: |
| 359 |
|
break; |
| 360 |
|
} |