Ignore:
Timestamp:
Apr 30, 2013, 3:06:45 AM (12 years ago)
Author:
alloc
Message:

Daodan:

  • Change "multibyte" param to "nomultibyte"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/patches/Patches.c

    r839 r843  
    263263}
    264264
    265 // Multi-byte patch (multiple language support)
    266 void DD_Patch_MultiByte()
     265// Weapon on ground shown with name and magazine contents
     266void 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)
     283void DD_Patch_NoMultiByte()
    267284{
    268285        DDrPatch_Byte  ((char*)(OniExe + 0x0002d8f8), 0xeb);
     
    284301}
    285302
    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 
    303303// Fix options not visible in main menu when a game was started
    304304void DD_Patch_OptionsVisible()
     
    482482                DD_Patch_LevelPlugins();
    483483
    484         if (!patch_multibyte)
    485                 DD_Patch_MultiByte();
    486 
    487484        if (patch_newweapon)
    488485                DD_Patch_NewWeap();
     486
     487        if (patch_nomultibyte)
     488                DD_Patch_NoMultiByte();
    489489
    490490        if(patch_optionsvisible)
Note: See TracChangeset for help on using the changeset viewer.