| 34 |
|
bool patch_throwtest = false; |
| 35 |
|
bool patch_alttab = true; |
| 36 |
|
bool patch_particledisablebit = false; |
| 37 |
< |
bool patch_multibyte = true; |
| 37 |
> |
bool patch_multibyte = false; |
| 38 |
|
bool patch_cheattable = true; |
| 39 |
+ |
bool patch_argb8888 = true; |
| 40 |
|
|
| 41 |
|
bool patch_safeprintf = true; |
| 42 |
|
bool patch_daodandisplayenum = true; |
| 128 |
|
DDrPatch_Int16 (OniExe + 0x001b184, 0x9090); |
| 129 |
|
|
| 130 |
|
// Multi-byte patch (multiple language support) |
| 131 |
< |
if (patch_multibyte) |
| 131 |
> |
if (!patch_multibyte) |
| 132 |
|
{ |
| 133 |
|
DDrPatch_Byte (OniExe + 0x0002d8f8, 0xeb); |
| 134 |
|
DDrPatch_Byte (OniExe + 0x0002d9ad, 0xeb); |
| 155 |
|
DDrPatch_Int32 (OniExe + 0x000f617a, (int)&DDr_CheatTable[0].message_on); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
+ |
if (patch_argb8888) |
| 159 |
+ |
{ |
| 160 |
+ |
DDrPatch_Byte (OniExe + 0x00135af0, 0x07); |
| 161 |
+ |
DDrPatch_Byte (OniExe + 0x00135af4, 0x0B); |
| 162 |
+ |
} |
| 163 |
+ |
|
| 164 |
|
return true; |
| 165 |
|
} |
| 166 |
|
|
| 212 |
|
patch_multibyte = !stricmp(value, "true"); |
| 213 |
|
else if (!stricmp(name, "cheattable")) |
| 214 |
|
patch_cheattable = !stricmp(value, "true"); |
| 215 |
+ |
else if (!stricmp(name, "argb8888")) |
| 216 |
+ |
patch_argb8888 = !stricmp(value, "true"); |
| 217 |
|
else if (!stricmp(name, "safeprintf")) |
| 218 |
|
patch_safeprintf = !stricmp(value, "true"); |
| 219 |
|
else if (!stricmp(name, "daodandisplayenum")) |