Changeset 843 for Daodan/src


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

Daodan:

  • Change "multibyte" param to "nomultibyte"
Location:
Daodan/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Config.c

    r838 r843  
    3030bool patch_largetextures = true;
    3131bool patch_levelplugins = true;
    32 bool patch_multibyte = false;
    3332bool patch_newweapon = true;
     33bool patch_nomultibyte = true;
    3434bool patch_optionsvisible = true;
    3535bool patch_particledisablebit = false;
     
    8686                        else if (!_stricmp(name, "ignore_private_data"))
    8787                                opt_ignore_private_data = !_stricmp(inifile_cleanstr(value), "true");
    88                         else if (!_stricmp(name, "multibyte"))
    89                                 patch_multibyte = !_stricmp(inifile_cleanstr(value), "true");
     88                        else if (!_stricmp(name, "nomultibyte"))
     89                                patch_nomultibyte = !_stricmp(inifile_cleanstr(value), "true");
    9090                        else if (!_stricmp(name, "sound"))
    9191                                opt_sound = !_stricmp(inifile_cleanstr(value), "true");
     
    138138                        else if (!_stricmp(name, "levelplugins"))
    139139                                patch_levelplugins = !_stricmp(inifile_cleanstr(value), "true");
    140                         else if (!_stricmp(name, "multibyte"))
    141                                 patch_multibyte = !_stricmp(inifile_cleanstr(value), "true");
     140                        else if (!_stricmp(name, "nomultibyte"))
     141                                patch_nomultibyte = !_stricmp(inifile_cleanstr(value), "true");
    142142                        else if (!_stricmp(name, "newweap"))
    143143                                patch_newweapon = !_stricmp(inifile_cleanstr(value), "true");
  • Daodan/src/Daodan_Config.h

    r838 r843  
    2525extern bool patch_largetextures;
    2626extern bool patch_levelplugins;
    27 extern bool patch_multibyte;
    2827extern bool patch_newweapon;
     28extern bool patch_nomultibyte;
    2929extern bool patch_optionsvisible;
    3030extern bool patch_particledisablebit;
  • 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.