366 |
|
ret->val.value_str32 = "NULL"; |
367 |
|
return 0; |
368 |
|
} |
369 |
< |
name = &ONgGameState->CharacterStorage[index].Name; |
369 |
> |
name = (char*)(&ONgGameState->CharacterStorage[index].Name); |
370 |
|
if (numargs == 2) { |
371 |
|
strncpy(name, (char*)args[1].val.value_str32, 31); |
372 |
|
} |
619 |
|
{ |
620 |
|
char output[1024]; |
621 |
|
char buffer[1024]; |
622 |
< |
int i; |
622 |
> |
unsigned int i; |
623 |
|
char* placeinoutput = output; |
624 |
|
char* placeininput = args[0].val.value_str32; |
625 |
|
int formatnum = 0; |
883 |
|
|
884 |
|
if(!TSrTest){ |
885 |
|
TMrInstance_GetDataPtr( 'TSFF', "Tahoma", &TSFFTahoma); |
886 |
< |
returnval = TSrContext_New( TSFFTahoma, 7, 1, 1, 0, &TSrTest); |
886 |
> |
returnval = TSrContext_New( TSFFTahoma, 7, 1, 1, 0, &TSrTest); |
887 |
|
} |
888 |
< |
DDrPatch_MakeCall(0x004FBCEA, DDrText_Hook); |
888 |
> |
DDrPatch_MakeCall((void*)0x004FBCEA, (void*)DDrText_Hook); |
889 |
|
|
890 |
|
*dontuse2 = 1; |
891 |
|
return 0; |
931 |
|
|
932 |
|
void SLrDaodan_Patch() |
933 |
|
{ |
934 |
< |
DDrPatch_Int32(OniExe + 0x000f3755, (int)cinematic_start_patch); |
934 |
> |
DDrPatch_Int32((int*)(OniExe + 0x000f3755), (int)cinematic_start_patch); |
935 |
|
} |