| 262 |
|
DDrPatch_Byte ((char*)(OniExe + 0x000206a8), 0x01); |
| 263 |
|
} |
| 264 |
|
|
| 265 |
< |
// Multi-byte patch (multiple language support) |
| 266 |
< |
void DD_Patch_MultiByte() |
| 265 |
> |
// Weapon on ground shown with name and magazine contents |
| 266 |
> |
void DD_Patch_NewWeap() |
| 267 |
> |
{ |
| 268 |
> |
//Makes it always say "Received weapon_name." |
| 269 |
> |
//Needs check for loc_4DFC66 |
| 270 |
> |
//DDrPatch_NOOP((char*)(OniExe + 0x000E4DF8),2); |
| 271 |
> |
|
| 272 |
> |
//Adds Weapon name and ammo meter to pickup autoprompt |
| 273 |
> |
DDrPatch_NOOP((char*)(OniExe + 0x000FAC73), 9); |
| 274 |
> |
DDrPatch_NOOP((char*)(OniExe + 0x000FAC80), 5); |
| 275 |
> |
DDrPatch_MakeCall((void*)(OniExe + 0xFAC85), (void*)DDrWeapon2Message); |
| 276 |
> |
|
| 277 |
> |
//Moves location of colors |
| 278 |
> |
//DDrPatch_Int32((int*)(OniExe + 0x0002E3D5), (int)&DDrDSayColors ); |
| 279 |
> |
//DDrPatch_Int32((int*)(OniExe + 0x0002E3DA), (int)&DDrDSayColors ); |
| 280 |
> |
} |
| 281 |
> |
|
| 282 |
> |
// Disable Multi-byte character awareness patch (multiple language support) |
| 283 |
> |
void DD_Patch_NoMultiByte() |
| 284 |
|
{ |
| 285 |
|
DDrPatch_Byte ((char*)(OniExe + 0x0002d8f8), 0xeb); |
| 286 |
|
DDrPatch_Byte ((char*)(OniExe + 0x0002d9ad), 0xeb); |
| 300 |
|
DDrPatch_Byte ((char*)(OniExe + 0x0002e9dc), 0xeb); |
| 301 |
|
} |
| 302 |
|
|
| 286 |
– |
// Weapon on ground shown with name and magazine contents |
| 287 |
– |
void DD_Patch_NewWeap() |
| 288 |
– |
{ |
| 289 |
– |
//Makes it always say "Received weapon_name." |
| 290 |
– |
//Needs check for loc_4DFC66 |
| 291 |
– |
//DDrPatch_NOOP((char*)(OniExe + 0x000E4DF8),2); |
| 292 |
– |
|
| 293 |
– |
//Adds Weapon name and ammo meter to pickup autoprompt |
| 294 |
– |
DDrPatch_NOOP((char*)(OniExe + 0x000FAC73), 9); |
| 295 |
– |
DDrPatch_NOOP((char*)(OniExe + 0x000FAC80), 5); |
| 296 |
– |
DDrPatch_MakeCall((void*)(OniExe + 0xFAC85), (void*)DDrWeapon2Message); |
| 297 |
– |
|
| 298 |
– |
//Moves location of colors |
| 299 |
– |
//DDrPatch_Int32((int*)(OniExe + 0x0002E3D5), (int)&DDrDSayColors ); |
| 300 |
– |
//DDrPatch_Int32((int*)(OniExe + 0x0002E3DA), (int)&DDrDSayColors ); |
| 301 |
– |
} |
| 302 |
– |
|
| 303 |
|
// Fix options not visible in main menu when a game was started |
| 304 |
|
void DD_Patch_OptionsVisible() |
| 305 |
|
{ |
| 481 |
|
if (patch_levelplugins) |
| 482 |
|
DD_Patch_LevelPlugins(); |
| 483 |
|
|
| 484 |
– |
if (!patch_multibyte) |
| 485 |
– |
DD_Patch_MultiByte(); |
| 486 |
– |
|
| 484 |
|
if (patch_newweapon) |
| 485 |
|
DD_Patch_NewWeap(); |
| 486 |
|
|
| 487 |
+ |
if (patch_nomultibyte) |
| 488 |
+ |
DD_Patch_NoMultiByte(); |
| 489 |
+ |
|
| 490 |
|
if(patch_optionsvisible) |
| 491 |
|
DD_Patch_OptionsVisible(); |
| 492 |
|
|