| 4 |
|
|
| 5 |
|
#include "Daodan_BSL.h" |
| 6 |
|
#include "Daodan_Utility.h" |
| 7 |
+ |
#include "Daodan_Patch.h" |
| 8 |
|
#include "Daodan_Console.h" |
| 9 |
|
#include "BFW_ScriptLang.h" |
| 10 |
|
#include "Oni.h" |
| 11 |
|
#include "Oni_Character.h" |
| 12 |
+ |
#include "oni_gl.h" |
| 13 |
|
#include "dSFMT\dSFMT.h" |
| 14 |
|
#include "Daodan_Character.h" |
| 15 |
|
|
| 344 |
|
return 0; |
| 345 |
|
} |
| 346 |
|
|
| 347 |
+ |
// Widescreen patch for talking heads. |
| 348 |
+ |
uint16_t ONICALL cinematic_start_patch(sl_callinfo* callinfo, unsigned int numargs, sl_arg args[], void* dontuse1, void* dontuse2, sl_arg* ret) |
| 349 |
+ |
{ |
| 350 |
+ |
args[1].value_int32 = (double)args[1].value_int32 / (double)(gl->DisplayMode.Width) * (4.0 / 3.0 * (double)(gl->DisplayMode.Height)); |
| 351 |
+ |
return ((sl_func)(OniExe + 0x000f3830))(callinfo, numargs, args, dontuse1, dontuse2, ret); |
| 352 |
+ |
} |
| 353 |
+ |
|
| 354 |
|
void SLrDaodan_Initalize() |
| 355 |
|
{ |
| 356 |
|
SLrScript_Command_Register_ReturnType("int32mul", "Multiplies two numbers", "n1:int n2:int", sl_int32, bsl_int32mul); |
| 373 |
|
SLrScript_Command_Register_ReturnType("d_getattacker","Gets the last person to hurt a character", "[ai_name:string | script_id:int]", sl_int32, bsl_chrname); |
| 374 |
|
|
| 375 |
|
SLrScript_Command_Register_ReturnType("sprintf", "C-style sprintf.", "format:string arg1 arg2 ...", sl_str32, bsl_sprintf); |
| 367 |
– |
|
| 376 |
|
SLrScript_Command_Register_ReturnType("dprintcolor", "prints to console in color", "text:string [color: r b g] [color: r b g]", sl_void, bsl_dprintcolored); |
| 377 |
< |
} |
| 377 |
> |
} |
| 378 |
> |
|
| 379 |
> |
void SLrDaodan_Patch() |
| 380 |
> |
{ |
| 381 |
> |
DDrPatch_Int32(OniExe + 0x000f3755, (int)cinematic_start_patch); |
| 382 |
> |
} |