- implement SetupSpecDenting

- update Ghidra DB
This commit is contained in:
Ilya Shurumov 2020-04-10 06:11:21 +06:00
parent 433370e9a4
commit c455065eda
4 changed files with 34 additions and 25 deletions

View File

@ -4,8 +4,8 @@
extern CAR_MODEL NewCarModel[5]; extern CAR_MODEL NewCarModel[5];
extern CAR_MODEL NewLowCarModel[5]; extern CAR_MODEL NewLowCarModel[5];
extern int whichCP = 0; // car poly counter extern int whichCP; // car poly counter
extern int baseSpecCP = 0; // special car poly counter extern int baseSpecCP; // special car poly counter
extern MODEL* gCarLowModelPtr[5]; extern MODEL* gCarLowModelPtr[5];
extern MODEL* gCarDamModelPtr[5]; extern MODEL* gCarDamModelPtr[5];

View File

@ -886,32 +886,41 @@ void ProcessDentLump(char *lump_ptr, int lump_size)
/* end block 4 */ /* end block 4 */
// End Line: 2740 // End Line: 2740
// [D]
void SetupSpecDenting(char *loadbuffer) void SetupSpecDenting(char *loadbuffer)
{ {
UNIMPLEMENTED(); unsigned char *from;
/* unsigned char *to;
char *pcVar1;
pcVar1 = &DAT_000c9e68; from = (unsigned char*)gCarDamageZoneVerts[4];
to = (unsigned char*)&gCarDamageZoneVerts[4][5][50]; // [A]
if (true) {
do { do {
*pcVar1 = *loadbuffer; *from = *loadbuffer;
pcVar1 = pcVar1 + 1; from = from + 1;
loadbuffer = loadbuffer + 1; loadbuffer = (char *)((unsigned char *)loadbuffer + 1);
} while (pcVar1 < (char *)0xc9f94); } while (from < to);
pcVar1 = &DAT_000c3fd8; }
from = (unsigned char*)gHDCarDamageZonePolys[4];
to = (unsigned char*)&gHDCarDamageZonePolys[4][5][70]; // [A]
if (true) {
do { do {
*pcVar1 = *loadbuffer; *from = *loadbuffer;
pcVar1 = pcVar1 + 1; from = from + 1;
loadbuffer = loadbuffer + 1; loadbuffer = (char *)((unsigned char *)loadbuffer + 1);
} while (pcVar1 < (char *)0xc417c); } while (from < to);
pcVar1 = &DAT_000c98b4; }
from = (unsigned char*)gHDCarDamageLevels[4];
to = (unsigned char*)&gHDCarDamageLevels[4][255]; // [A]
if (true) {
do { do {
*pcVar1 = *loadbuffer; *from = *loadbuffer;
pcVar1 = pcVar1 + 1; from = from + 1;
loadbuffer = loadbuffer + 1; loadbuffer = (char *)((unsigned char *)loadbuffer + 1);
} while (pcVar1 < (char *)0xc99b3); } while (from < to);
return; }
*/
} }