Changeset 843
- Timestamp:
- Apr 30, 2013, 3:06:45 AM (12 years ago)
- Location:
- Daodan/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan_Config.c
r838 r843 30 30 bool patch_largetextures = true; 31 31 bool patch_levelplugins = true; 32 bool patch_multibyte = false;33 32 bool patch_newweapon = true; 33 bool patch_nomultibyte = true; 34 34 bool patch_optionsvisible = true; 35 35 bool patch_particledisablebit = false; … … 86 86 else if (!_stricmp(name, "ignore_private_data")) 87 87 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"); 90 90 else if (!_stricmp(name, "sound")) 91 91 opt_sound = !_stricmp(inifile_cleanstr(value), "true"); … … 138 138 else if (!_stricmp(name, "levelplugins")) 139 139 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"); 142 142 else if (!_stricmp(name, "newweap")) 143 143 patch_newweapon = !_stricmp(inifile_cleanstr(value), "true"); -
Daodan/src/Daodan_Config.h
r838 r843 25 25 extern bool patch_largetextures; 26 26 extern bool patch_levelplugins; 27 extern bool patch_multibyte;28 27 extern bool patch_newweapon; 28 extern bool patch_nomultibyte; 29 29 extern bool patch_optionsvisible; 30 30 extern bool patch_particledisablebit; -
Daodan/src/patches/Patches.c
r839 r843 263 263 } 264 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() 267 284 { 268 285 DDrPatch_Byte ((char*)(OniExe + 0x0002d8f8), 0xeb); … … 284 301 } 285 302 286 // Weapon on ground shown with name and magazine contents287 void DD_Patch_NewWeap()288 {289 //Makes it always say "Received weapon_name."290 //Needs check for loc_4DFC66291 //DDrPatch_NOOP((char*)(OniExe + 0x000E4DF8),2);292 293 //Adds Weapon name and ammo meter to pickup autoprompt294 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 colors299 //DDrPatch_Int32((int*)(OniExe + 0x0002E3D5), (int)&DDrDSayColors );300 //DDrPatch_Int32((int*)(OniExe + 0x0002E3DA), (int)&DDrDSayColors );301 }302 303 303 // Fix options not visible in main menu when a game was started 304 304 void DD_Patch_OptionsVisible() … … 482 482 DD_Patch_LevelPlugins(); 483 483 484 if (!patch_multibyte)485 DD_Patch_MultiByte();486 487 484 if (patch_newweapon) 488 485 DD_Patch_NewWeap(); 486 487 if (patch_nomultibyte) 488 DD_Patch_NoMultiByte(); 489 489 490 490 if(patch_optionsvisible)
Note:
See TracChangeset
for help on using the changeset viewer.