Curation round 26 (code only): the Siren, Singe's body and Butt Slicker, DebugRenderer and the hitsphere and player-info debug views, saved key bindings for menu actions, Mega Blast, 4.5 Volt, C Section, Mom's Bracelet, Book of the Dead and Everything Jar, and a parity audit of the player, pickups, level, familiars and Entity_NPC fixing about 90 differences; 005832c0 and 0058a010 renamed
This commit is contained in:
1 parent
5c89798773
commit
cc77c923e8
112 files changed
+4358
-1864
No files matched your search
+2
-29
@@ -1140,12 +1140,6 @@ struct DateTime {
|
||||
};
|
||||
|
||||
|
||||
struct DebugRenderer {
|
||||
void Render(); // 0042dbb0
|
||||
void * Get(int Index, uint8_t Unk); // 0042eb10
|
||||
};
|
||||
|
||||
|
||||
struct Vector {
|
||||
static Vector * operator_mul(Vector *outResult, float *scalar, Vector *vector); // 004171d0
|
||||
static Vector * ToCardinal(Vector *outResult, Vector *vec); // 0067f170
|
||||
@@ -3380,7 +3374,9 @@ struct NpcHelper {
|
||||
static int ReapCreep_CountOtherEnemies(); // 00579770
|
||||
static Entity_Laser * ReapCreep_ThinLaser(Entity_NPC *npc, float startAngle, float endAngle, int unused); // 005797b0
|
||||
static void scourge_whip(Entity_NPC *npc); // 00582f60
|
||||
void scourge_chain_strip_render(Vector *renderOffset); // 005832c0
|
||||
static void scourge_chain_shoot(); // 00587480
|
||||
static void singe_crater_ring(Entity *pitEntity); // 0058a010
|
||||
static void singe_explode_at(Entity_NPC *npc, Vector *position); // 0058ac10
|
||||
static void siren_charm_familiar(Entity_NPC *npc, Entity_Familiar *familiar); // 0058e260
|
||||
static void siren_familiar_counts(int *outFreeCount, int *outCharmedCount, int *outTotalCount); // 0058e490
|
||||
@@ -3583,12 +3579,6 @@ struct Shader {
|
||||
};
|
||||
|
||||
|
||||
struct Shape {
|
||||
Shape(void *other); // 0042f850
|
||||
Shape() = default;
|
||||
};
|
||||
|
||||
|
||||
struct SharedPtr {
|
||||
void assign(void *other); // 004d74a0
|
||||
};
|
||||
@@ -5440,7 +5430,6 @@ void FUN_0042c820(uint32_t param_1); // 0042c820
|
||||
int FUN_0042d040(); // 0042d040
|
||||
void FUN_0042edb0(); // 0042edb0
|
||||
void FUN_0042ede0(uint32_t *param_1); // 0042ede0
|
||||
void push_shape_points(void *self, Capsule *capsule); // 0042eef0
|
||||
void FUN_0042f050(uint32_t param_1); // 0042f050
|
||||
void FUN_0042f060(); // 0042f060
|
||||
void FUN_0042f0c0(); // 0042f0c0
|
||||
@@ -5604,7 +5593,6 @@ void set_byte_0x101(void *self, uint8_t value); // 00505b50
|
||||
int FUN_00505ca0(); // 00505ca0
|
||||
uint32_t * FUN_00505ce0(); // 00505ce0
|
||||
void npc_distribute_orbit_angles(Entity_NPC *npc); // 00547040
|
||||
int FUN_0054d1b0(int param_1); // 0054d1b0
|
||||
void FUN_00557b50(uint32_t param_1); // 00557b50
|
||||
void FUN_00557b70(uint8_t *param_1); // 00557b70
|
||||
bool FUN_00557bb0(int *param_1); // 00557bb0
|
||||
@@ -5655,9 +5643,6 @@ void FUN_005c7bf0(int *param_1, int *param_2); // 005c7bf0
|
||||
void FUN_005c7d30(int param_1); // 005c7d30
|
||||
void FUN_005c7e30(int param_1); // 005c7e30
|
||||
void FUN_005c7ef0(int param_1); // 005c7ef0
|
||||
void FUN_005c7f20(int param_1); // 005c7f20
|
||||
void everything_jar_crack_the_sky_timer(int param_1); // 005c8020
|
||||
void everything_jar_shopkeeper_rain_timer(int param_1); // 005c83f0
|
||||
void FUN_005ca566(uint32_t param_1, uint32_t param_2, int param_3); // 005ca566
|
||||
void FUN_005ca880(); // 005ca880
|
||||
void FUN_005cba20(); // 005cba20
|
||||
@@ -6018,7 +6003,6 @@ void FUN_006daab0(); // 006daab0
|
||||
void FUN_006dac00(uint32_t *param_1, uint32_t param_2); // 006dac00
|
||||
float log_precise(float value); // 006dac30
|
||||
void FUN_006daca0(uint32_t param_1); // 006daca0
|
||||
uint32_t FUN_006e1910(uint32_t param_1); // 006e1910
|
||||
void FUN_006ee330(); // 006ee330
|
||||
int FUN_006ee640(int param_1, int param_2, uint32_t *param_3, uint32_t param_4); // 006ee640
|
||||
uint32_t FUN_006eeeb0(); // 006eeeb0
|
||||
@@ -6210,7 +6194,6 @@ void FUN_00757980(uint32_t *param_1); // 00757980
|
||||
void FUN_00757a10(); // 00757a10
|
||||
uint32_t FUN_00758590(); // 00758590
|
||||
int FUN_00759260(); // 00759260
|
||||
void FUN_00770640(float *param_1); // 00770640
|
||||
void FUN_007792f0(uint32_t param_1, uint32_t param_2); // 007792f0
|
||||
uint32_t FUN_007826c0(); // 007826c0
|
||||
void FUN_0078b330(uint32_t *param_1); // 0078b330
|
||||
@@ -6222,8 +6205,6 @@ void FUN_007b8c00(int param_1); // 007b8c00
|
||||
void FUN_007c2e80(); // 007c2e80
|
||||
void FUN_007cb4f0(); // 007cb4f0
|
||||
void FUN_007cf940(); // 007cf940
|
||||
long double FUN_007cf9a0(float *param_1, KColor *param_2, uint32_t param_3); // 007cf9a0
|
||||
uint8_t * FUN_007cfa90(); // 007cfa90
|
||||
void FUN_007d3330(int param_1); // 007d3330
|
||||
void FUN_007d9360(); // 007d9360
|
||||
uint32_t FUN_007d9ca0(); // 007d9ca0
|
||||
@@ -20265,14 +20246,6 @@ void Update(); // 008e7250
|
||||
namespace NetLogging {
|
||||
void format_callstack(uint32_t param_1, uint32_t param_2); // 00904a60
|
||||
}
|
||||
namespace NpcAI {
|
||||
void ENTITY_BUTT_SLICKER(Entity_NPC *npc); // 0054d250
|
||||
void ENTITY_SINGE_body(Entity_NPC *npc); // 0058aed0
|
||||
void ENTITY_SIREN_main(Entity_NPC *npc); // 0058ec70
|
||||
void siren_release_stolen_items(Entity_NPC *npc); // 005911b0
|
||||
void ENTITY_SIREN(Entity_NPC *npc); // 00591460
|
||||
void ENTITY_SIREN_HELPER(Entity_NPC *npc); // 00591cc0
|
||||
}
|
||||
namespace OnlineStats {
|
||||
void compute_awards(); // 004254b0
|
||||
}
|
||||
|
||||
@@ -1,533 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 0042dbb0
|
||||
void DebugRenderer::Render()
|
||||
{
|
||||
float *pfVar1;
|
||||
float *line;
|
||||
void *quad;
|
||||
uint8_t *textChars;
|
||||
uint32_t pointIndex;
|
||||
uint16_t *cmd;
|
||||
int prevStep;
|
||||
int iVar2;
|
||||
int *piVar3;
|
||||
float fVar4;
|
||||
float fVar5;
|
||||
float sinQuarterTurn;
|
||||
double dVar6;
|
||||
uint8_t rectQuad [112];
|
||||
uint8_t lineQuad [112];
|
||||
uint32_t fontParams;
|
||||
uint32_t local_118;
|
||||
uint32_t local_114;
|
||||
uint32_t local_110;
|
||||
uint32_t local_10c;
|
||||
uint32_t local_108;
|
||||
uint32_t local_104;
|
||||
Vector arcEndB;
|
||||
Vector arcEndA;
|
||||
Vector sideBFrom;
|
||||
Vector sideBTo;
|
||||
Vector sideAFrom;
|
||||
Vector sideATo;
|
||||
Vector circleNext;
|
||||
Vector rectPos;
|
||||
Vector rectSize;
|
||||
Vector linePos;
|
||||
Vector lineSize;
|
||||
Vector segmentEnd;
|
||||
Vector segmentStart;
|
||||
DebugRenderer *renderer;
|
||||
Vector arcStartB;
|
||||
Vector arcStartA;
|
||||
Vector circlePrev;
|
||||
KColor color;
|
||||
float capsuleCenterY;
|
||||
float capsuleCenterX;
|
||||
float capsuleOffsetY;
|
||||
float capsuleOffsetX;
|
||||
int *node;
|
||||
float capsuleAxisY;
|
||||
float roomOffsetY;
|
||||
float roomOffsetX;
|
||||
float local_48;
|
||||
float local_44;
|
||||
float local_40;
|
||||
float local_3c;
|
||||
uint16_t *local_38;
|
||||
float local_34;
|
||||
float local_30;
|
||||
float local_2c;
|
||||
uint8_t *local_28;
|
||||
float local_24;
|
||||
uint8_t *puStack_20;
|
||||
void *local_1c;
|
||||
uint8_t *puStack_18;
|
||||
uint32_t local_14;
|
||||
uint16_t *cmdLast;
|
||||
|
||||
puStack_20 = GHIDRA_CAST<uint8_t *>((GHIDRA_INT(register0x00000010) + -4));
|
||||
local_14 = 0xffffffff;
|
||||
puStack_18 = &LAB_00af1e50;
|
||||
local_1c = ExceptionList;
|
||||
ExceptionList = &local_1c;
|
||||
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) != 0) {
|
||||
roomOffsetX = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(g_game->_room) + 0x1204));
|
||||
roomOffsetY = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(g_game->_room) + 0x1208));
|
||||
node = GHIDRA_CAST<int *>(**(int **))this;
|
||||
renderer = this;
|
||||
if (node != *GHIDRA_CAST<int **>(this)) {
|
||||
do {
|
||||
cmd = GHIDRA_CAST<uint16_t *>(node[4]);
|
||||
color._unk = 0;
|
||||
color._red = 1.0;
|
||||
color._green = 1.0;
|
||||
color._blue = 0.0;
|
||||
color._alpha = 1.0;
|
||||
piVar3 = node;
|
||||
if (cmd != GHIDRA_CAST<uint16_t *>(node[5])) {
|
||||
do {
|
||||
cmdLast = cmd;
|
||||
switch(*cmd) {
|
||||
case 0xfff9:
|
||||
cmdLast = cmd + 2;
|
||||
local_28 = GHIDRA_CAST<uint8_t *>((piVar3[0xd] + GHIDRA_UINT(*cmdLast) * 0x18));
|
||||
local_24 = g_displayPixelRatio * g_screenPointScale;
|
||||
local_40 = (*GHIDRA_CAST<float *>((piVar3[10] + 4 + GHIDRA_UINT(cmd[1]) * 8)) - 140.0) * 0.65 +
|
||||
(g_screenHeight - 182.0) * 0.5;
|
||||
local_44 = local_24 *
|
||||
((*GHIDRA_CAST<float *>((piVar3[10] + GHIDRA_UINT(cmd[1]) * 8)) - 60.0) * 0.65 +
|
||||
(g_screenWidth - 338.0) * 0.5) + 0.5;
|
||||
dVar6 = floor((double)local_44);
|
||||
local_2c = (float)dVar6 / local_24;
|
||||
local_44 = local_24 * local_40 + 0.5;
|
||||
dVar6 = floor((double)local_44);
|
||||
local_44 = (float)dVar6;
|
||||
fontParams = 0;
|
||||
local_118 = 0xffff;
|
||||
local_114 = 0;
|
||||
local_110 = 0x3f800000;
|
||||
local_10c = 0xffffffff;
|
||||
local_108 = 0;
|
||||
local_104 = 0;
|
||||
local_14 = 0;
|
||||
textChars = local_28;
|
||||
if (0xf < *GHIDRA_CAST<uint32_t *>((local_28 + 0x14))) {
|
||||
textChars = *GHIDRA_CAST<uint8_t **>(local_28);
|
||||
}
|
||||
Font::DrawString(&g_manager->_font8_LuaMiniOutlined,textChars,&color,&fontParams,
|
||||
roomOffsetX + local_2c,roomOffsetY + local_44 / local_24);
|
||||
local_14 = 0xffffffff;
|
||||
break;
|
||||
case 0xfffa:
|
||||
local_24 = (float)GHIDRA_UINT(cmd[2]);
|
||||
local_30 = (float)GHIDRA_UINT(cmd[1]);
|
||||
cmdLast = cmd + 3;
|
||||
iVar2 = piVar3[10];
|
||||
pointIndex = GHIDRA_UINT(*cmdLast);
|
||||
capsuleOffsetX =
|
||||
*GHIDRA_CAST<float *>((iVar2 + 4 + pointIndex * 8)) * *GHIDRA_CAST<float *>((iVar2 + GHIDRA_INT(local_24) * 8));
|
||||
fVar4 = (*GHIDRA_CAST<float *>((iVar2 + pointIndex * 8)) * 6.2831855) / 10.0;
|
||||
if (fVar4 <= 2.0) {
|
||||
fVar4 = 2.0;
|
||||
}
|
||||
capsuleOffsetY =
|
||||
*GHIDRA_CAST<float *>((iVar2 + 4 + GHIDRA_INT(local_24) * 8)) *
|
||||
*GHIDRA_CAST<float *>((iVar2 + 4 + pointIndex * 8));
|
||||
if (12.0 <= fVar4) {
|
||||
fVar4 = 12.0;
|
||||
}
|
||||
local_2c = (float)(GHIDRA_INT(fVar4) * 2);
|
||||
local_38 = cmdLast;
|
||||
local_28 = GHIDRA_CAST<uint8_t *>(cos(1.5707964));
|
||||
sinQuarterTurn = sin(1.5707964);
|
||||
piVar3 = node;
|
||||
iVar2 = node[10];
|
||||
fVar4 = *GHIDRA_CAST<float *>((iVar2 + GHIDRA_INT(local_24) * 8));
|
||||
fVar5 = *GHIDRA_CAST<float *>((iVar2 + 4 + GHIDRA_INT(local_24) * 8));
|
||||
local_34 = (fVar4 * (float)local_28 - sinQuarterTurn * fVar5) *
|
||||
*GHIDRA_CAST<float *>((iVar2 + GHIDRA_UINT(*cmdLast) * 8));
|
||||
local_3c = g_displayPixelRatio * g_screenPointScale;
|
||||
capsuleAxisY = (sinQuarterTurn * fVar4 + fVar5 * (float)local_28) *
|
||||
*GHIDRA_CAST<float *>((iVar2 + GHIDRA_UINT(*cmdLast) * 8));
|
||||
local_24 = ((g_screenWidth - 338.0) * 0.5 +
|
||||
(*GHIDRA_CAST<float *>((iVar2 + GHIDRA_INT(local_30) * 8)) - 60.0) * 0.65) * local_3c + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_28 = GHIDRA_CAST<uint8_t *>(((float)dVar6 / local_3c));
|
||||
local_24 = ((*GHIDRA_CAST<float *>((piVar3[10] + 4 + GHIDRA_INT(local_30) * 8)) - 140.0) * 0.65 +
|
||||
(g_screenHeight - 182.0) * 0.5) * local_3c + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
capsuleCenterY = roomOffsetY + (float)dVar6 / local_3c;
|
||||
capsuleCenterX = roomOffsetX + (float)local_28;
|
||||
local_28 = GHIDRA_CAST<uint8_t *>(-capsuleOffsetY);
|
||||
sideATo.x = (local_34 + capsuleOffsetX) * 0.65 + capsuleCenterX;
|
||||
sideATo.y = (capsuleAxisY + capsuleOffsetY) * 0.65 + capsuleCenterY;
|
||||
local_48 = -capsuleOffsetX;
|
||||
sideAFrom.x = (local_48 + local_34) * 0.65 + capsuleCenterX;
|
||||
sideAFrom.y = ((float)local_28 + capsuleAxisY) * 0.65 + capsuleCenterY;
|
||||
local_40 = sideAFrom.y;
|
||||
local_3c = sideAFrom.x;
|
||||
local_30 = sideATo.y;
|
||||
local_24 = sideATo.x;
|
||||
render_color_quad(&sideAFrom,&sideATo,&color,&color,1.0);
|
||||
sideBTo.x = (capsuleOffsetX - local_34) * 0.65 + capsuleCenterX;
|
||||
sideBTo.y = (capsuleOffsetY - capsuleAxisY) * 0.65 + capsuleCenterY;
|
||||
sideBFrom.x = (local_48 - local_34) * 0.65 + capsuleCenterX;
|
||||
sideBFrom.y = ((float)local_28 - capsuleAxisY) * 0.65 + capsuleCenterY;
|
||||
render_color_quad(&sideBFrom,&sideBTo,&color,&color,1.0);
|
||||
arcStartA.x = local_24;
|
||||
arcStartA.y = local_30;
|
||||
arcStartB.x = local_3c;
|
||||
arcStartB.y = local_40;
|
||||
local_40 = 1.4013e-45;
|
||||
if (0 < GHIDRA_INT(local_2c)) {
|
||||
iVar2 = 1;
|
||||
prevStep = -1;
|
||||
local_24 = (float)GHIDRA_INT(local_2c);
|
||||
do {
|
||||
local_40 = (((float)prevStep * 180.0) / local_24) * 0.017453292;
|
||||
local_3c = cos(local_40);
|
||||
fVar4 = sin(local_40);
|
||||
local_40 = (((float)iVar2 * 180.0) / local_24) * 0.017453292;
|
||||
arcEndA.y = (local_3c * capsuleAxisY + fVar4 * local_34 + capsuleOffsetY) * 0.65 +
|
||||
capsuleCenterY;
|
||||
arcEndA.x = ((local_3c * local_34 - fVar4 * capsuleAxisY) + capsuleOffsetX) * 0.65
|
||||
+ capsuleCenterX;
|
||||
local_44 = arcEndA.x;
|
||||
local_3c = arcEndA.y;
|
||||
local_30 = cos(local_40);
|
||||
fVar4 = sin(local_40);
|
||||
arcEndB.x = ((local_30 * local_34 - capsuleAxisY * fVar4) + local_48) * 0.65 +
|
||||
capsuleCenterX;
|
||||
arcEndB.y = (local_30 * capsuleAxisY + local_34 * fVar4 + (float)local_28) * 0.65
|
||||
+ capsuleCenterY;
|
||||
local_40 = arcEndB.x;
|
||||
local_30 = arcEndB.y;
|
||||
render_color_quad(&arcStartA,&arcEndA,&color,&color,1.0);
|
||||
render_color_quad(&arcStartB,&arcEndB,&color,&color,1.0);
|
||||
iVar2 = iVar2 + 1;
|
||||
arcStartA.x = local_44;
|
||||
prevStep = prevStep + -1;
|
||||
arcStartA.y = local_3c;
|
||||
arcStartB.x = local_40;
|
||||
arcStartB.y = local_30;
|
||||
} while (iVar2 <= GHIDRA_INT(local_2c));
|
||||
cmdLast = local_38;
|
||||
piVar3 = node;
|
||||
}
|
||||
break;
|
||||
case 0xfffb:
|
||||
local_2c = (float)GHIDRA_UINT(cmd[1]);
|
||||
cmdLast = cmd + 2;
|
||||
local_34 = *GHIDRA_CAST<float *>((piVar3[10] + GHIDRA_UINT(*cmdLast) * 8));
|
||||
fVar4 = (local_34 * 6.2831855) / 10.0;
|
||||
local_30 = g_displayPixelRatio * g_screenPointScale;
|
||||
if (fVar4 <= 2.0) {
|
||||
fVar4 = 2.0;
|
||||
}
|
||||
if (12.0 <= fVar4) {
|
||||
fVar4 = 12.0;
|
||||
}
|
||||
local_48 = (float)(GHIDRA_INT(fVar4) * 2);
|
||||
local_24 = ((g_screenWidth - 338.0) * 0.5 +
|
||||
(*GHIDRA_CAST<float *>((piVar3[10] + GHIDRA_INT(local_2c) * 8)) - 60.0) * 0.65) * local_30 +
|
||||
0.5;
|
||||
local_38 = cmdLast;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_28 = GHIDRA_CAST<uint8_t *>(((float)dVar6 / local_30));
|
||||
local_24 = ((g_screenHeight - 182.0) * 0.5 +
|
||||
(*GHIDRA_CAST<float *>((piVar3[10] + 4 + GHIDRA_INT(local_2c) * 8)) - 140.0) * 0.65) * local_30
|
||||
+ 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_24 = (float)dVar6;
|
||||
local_3c = roomOffsetY + local_24 / local_30;
|
||||
local_30 = roomOffsetX + (float)local_28;
|
||||
fVar4 = cos(0.0);
|
||||
circlePrev.x = fVar4 * local_34 * 0.65 + local_30;
|
||||
fVar5 = sin(0.0);
|
||||
fVar4 = (float)(GHIDRA_INT(local_48) * 2);
|
||||
circlePrev.y = fVar5 * local_34 * 0.65 + local_3c;
|
||||
local_2c = fVar4;
|
||||
if (0 < GHIDRA_INT(fVar4)) {
|
||||
iVar2 = 1;
|
||||
local_28 = GHIDRA_CAST<uint8_t *>((float)GHIDRA_INT(local_48));
|
||||
do {
|
||||
local_24 = (((float)iVar2 * 180.0) / (float)local_28) * 0.017453292;
|
||||
fVar5 = cos(local_24);
|
||||
circleNext.x = fVar5 * local_34 * 0.65 + local_30;
|
||||
local_2c = circleNext.x;
|
||||
fVar5 = sin(local_24);
|
||||
circleNext.y = fVar5 * local_34 * 0.65 + local_3c;
|
||||
local_24 = circleNext.y;
|
||||
render_color_quad(&circlePrev,&circleNext,&color,&color,1.0);
|
||||
iVar2 = iVar2 + 1;
|
||||
circlePrev.x = local_2c;
|
||||
circlePrev.y = local_24;
|
||||
} while (iVar2 <= GHIDRA_INT(fVar4));
|
||||
cmdLast = local_38;
|
||||
piVar3 = node;
|
||||
}
|
||||
break;
|
||||
case 0xfffc:
|
||||
local_2c = (float)GHIDRA_UINT(cmd[1]);
|
||||
iVar2 = piVar3[10];
|
||||
local_38 = GHIDRA_CAST<uint16_t *>((g_displayPixelRatio * g_screenPointScale));
|
||||
pointIndex = GHIDRA_UINT(cmd[2]);
|
||||
fVar4 = *GHIDRA_CAST<float *>((iVar2 + GHIDRA_INT(local_2c) * 8));
|
||||
rectSize.x = (*GHIDRA_CAST<float *>((iVar2 + pointIndex * 8)) - fVar4) * 0.65;
|
||||
rectSize.y = (*GHIDRA_CAST<float *>((iVar2 + 4 + pointIndex * 8)) -
|
||||
*GHIDRA_CAST<float *>((iVar2 + 4 + GHIDRA_INT(local_2c) * 8))) * 0.65;
|
||||
local_24 = ((g_screenWidth - 338.0) * 0.5 + (fVar4 - 60.0) * 0.65) * (float)local_38 +
|
||||
0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_48 = (float)dVar6 / (float)local_38;
|
||||
local_24 = ((g_screenHeight - 182.0) * 0.5 +
|
||||
(*GHIDRA_CAST<float *>((piVar3[10] + 4 + GHIDRA_INT(local_2c) * 8)) - 140.0) * 0.65) *
|
||||
(float)local_38 + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_24 = (float)dVar6;
|
||||
rectPos.x = local_48 + roomOffsetX;
|
||||
rectPos.y = roomOffsetY + local_24 / (float)local_38;
|
||||
render_quad_set_rect(rectQuad,&rectPos,&rectSize,&color);
|
||||
render_color_shader_pass(quad);
|
||||
cmdLast = cmd + 2;
|
||||
break;
|
||||
case 0xfffd:
|
||||
local_2c = (float)GHIDRA_UINT(cmd[1]);
|
||||
iVar2 = piVar3[10];
|
||||
local_38 = GHIDRA_CAST<uint16_t *>((g_displayPixelRatio * g_screenPointScale));
|
||||
pointIndex = GHIDRA_UINT(cmd[2]);
|
||||
fVar4 = *GHIDRA_CAST<float *>((iVar2 + GHIDRA_INT(local_2c) * 8));
|
||||
lineSize.x = (*GHIDRA_CAST<float *>((iVar2 + pointIndex * 8)) - fVar4) * 0.65;
|
||||
lineSize.y = (*GHIDRA_CAST<float *>((iVar2 + 4 + pointIndex * 8)) -
|
||||
*GHIDRA_CAST<float *>((iVar2 + 4 + GHIDRA_INT(local_2c) * 8))) * 0.65;
|
||||
local_24 = ((g_screenWidth - 338.0) * 0.5 + (fVar4 - 60.0) * 0.65) * (float)local_38 +
|
||||
0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_48 = (float)dVar6 / (float)local_38;
|
||||
local_24 = ((g_screenHeight - 182.0) * 0.5 +
|
||||
(*GHIDRA_CAST<float *>((piVar3[10] + 4 + GHIDRA_INT(local_2c) * 8)) - 140.0) * 0.65) *
|
||||
(float)local_38 + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_24 = (float)dVar6;
|
||||
linePos.x = roomOffsetX + local_48;
|
||||
linePos.y = roomOffsetY + local_24 / (float)local_38;
|
||||
render_quad_set_rect(lineQuad,&linePos,&lineSize,&color);
|
||||
render_quad_draw_color_shader(line,1.0);
|
||||
cmdLast = cmd + 2;
|
||||
break;
|
||||
case 0xfffe:
|
||||
local_38 = GHIDRA_CAST<uint16_t *>(GHIDRA_UINT(cmd[1]));
|
||||
cmdLast = cmd + 2;
|
||||
local_34 = g_displayPixelRatio * g_screenPointScale;
|
||||
local_30 = (g_screenHeight - 182.0) * 0.5;
|
||||
local_28 = GHIDRA_CAST<uint8_t *>(((g_screenWidth - 338.0) * 0.5));
|
||||
local_24 = ((*GHIDRA_CAST<float *>((piVar3[10] + GHIDRA_UINT(*cmdLast) * 8)) - 60.0) * 0.65 +
|
||||
(float)local_28) * local_34 + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_2c = (float)dVar6 / local_34;
|
||||
local_24 = ((*GHIDRA_CAST<float *>((piVar3[10] + 4 + GHIDRA_UINT(*cmdLast) * 8)) - 140.0) * 0.65 +
|
||||
local_30) * local_34 + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
segmentStart.x = local_2c + roomOffsetX;
|
||||
segmentStart.y = roomOffsetY + (float)dVar6 / local_34;
|
||||
local_24 = ((*GHIDRA_CAST<float *>((piVar3[10] + GHIDRA_INT(local_38) * 8)) - 60.0) * 0.65 +
|
||||
(float)local_28) * local_34 + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_2c = (float)dVar6 / local_34;
|
||||
local_24 = ((*GHIDRA_CAST<float *>((piVar3[10] + 4 + GHIDRA_INT(local_38) * 8)) - 140.0) * 0.65 + local_30
|
||||
) * local_34 + 0.5;
|
||||
dVar6 = floor((double)local_24);
|
||||
local_24 = (float)dVar6;
|
||||
segmentEnd.x = roomOffsetX + local_2c;
|
||||
segmentEnd.y = roomOffsetY + local_24 / local_34;
|
||||
render_color_quad(&segmentEnd,&segmentStart,&color,&color,1.0);
|
||||
break;
|
||||
case 0xffff:
|
||||
pfVar1 = GHIDRA_CAST<float *>((piVar3[7] + GHIDRA_UINT(cmd[1]) * 0x14));
|
||||
color._red = *pfVar1;
|
||||
color._green = pfVar1[1];
|
||||
color._blue = pfVar1[2];
|
||||
color._alpha = pfVar1[3];
|
||||
color._unk = *GHIDRA_CAST<int *>((piVar3[7] + 0x10 + GHIDRA_UINT(cmd[1]) * 0x14));
|
||||
cmdLast = cmd + 1;
|
||||
}
|
||||
cmd = cmdLast + 1;
|
||||
} while (cmd != GHIDRA_CAST<uint16_t *>(piVar3[5]));
|
||||
this = renderer;
|
||||
}
|
||||
node = GHIDRA_CAST<int *>(*piVar3);
|
||||
} while (node != GHIDRA_CAST<int *>(*GHIDRA_CAST<int *>(this)));
|
||||
}
|
||||
}
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
}
|
||||
|
||||
// 0042eb10
|
||||
void * DebugRenderer::Get(int Index, uint8_t Unk)
|
||||
{
|
||||
int iVar1;
|
||||
int *newNode;
|
||||
void *ptr;
|
||||
uint32_t size;
|
||||
uint32_t uVar2;
|
||||
void *pvVar3;
|
||||
char *text;
|
||||
int tmpShape;
|
||||
uint32_t local_50;
|
||||
void *pvStack_4c;
|
||||
uint32_t uStack_48;
|
||||
int iStack_44;
|
||||
void *local_40;
|
||||
uint32_t uStack_3c;
|
||||
int iStack_38;
|
||||
void *pvStack_34;
|
||||
uint32_t local_30;
|
||||
int iStack_2c;
|
||||
int *piStack_28;
|
||||
int *piStack_24;
|
||||
int local_20;
|
||||
DebugRenderer *local_1c;
|
||||
int *local_18;
|
||||
DebugRenderer *self;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
uint32_t *node;
|
||||
char *textsEnd;
|
||||
int *tmpTextsBegin;
|
||||
int *tmpTextsEnd;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00af1e85;
|
||||
local_10 = ExceptionList;
|
||||
ExceptionList = &local_10;
|
||||
self = this;
|
||||
if (Index != -1) {
|
||||
for (node = GHIDRA_CAST<uint32_t *>(**(uint32_t **))this; node != *GHIDRA_CAST<uint32_t **>(this);
|
||||
node = GHIDRA_CAST<uint32_t *>(*node)) {
|
||||
if (node[2] == Index) {
|
||||
if (Unk != 0) {
|
||||
node[8] = node[7];
|
||||
node[0xb] = node[10];
|
||||
node[5] = node[4];
|
||||
textsEnd = GHIDRA_CAST<char *>(node[0xe]);
|
||||
text = GHIDRA_CAST<char *>(node[0xd]);
|
||||
if (text != textsEnd) {
|
||||
do {
|
||||
(GHIDRA_CAST<msvc::string *>((text)))->msvc::string::_Tidy_deallocate();
|
||||
text = text + 0x18;
|
||||
} while (text != textsEnd);
|
||||
text = GHIDRA_CAST<char *>(node[0xd]);
|
||||
}
|
||||
node[0xe] = text;
|
||||
node[3] = 5;
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return node + 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
local_50 = 5;
|
||||
pvStack_4c = (void *)0x0;
|
||||
uStack_48 = 0;
|
||||
iStack_44 = 0;
|
||||
tmpShape = Index;
|
||||
local_20 = 0;
|
||||
local_40 = (void *)0x0;
|
||||
uStack_3c = 0;
|
||||
iStack_38 = 0;
|
||||
pvStack_34 = (void *)0x0;
|
||||
local_30 = 0;
|
||||
iStack_2c = 0;
|
||||
piStack_28 = GHIDRA_CAST<int *>(0x0);
|
||||
piStack_24 = GHIDRA_CAST<int *>(0x0);
|
||||
local_8 = 0;
|
||||
iVar1 = *GHIDRA_CAST<int *>(this);
|
||||
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) == 0x3ffffff) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
msvc::_Xlength_error("list too long");
|
||||
}
|
||||
local_8 = 1;
|
||||
local_18 = GHIDRA_CAST<int *>(0x0);
|
||||
local_1c = this;
|
||||
newNode = operator_new(0x40);
|
||||
local_18 = newNode;
|
||||
(GHIDRA_CAST<Shape *>((newNode + 2)))->Shape::Shape(&tmpShape);
|
||||
tmpTextsEnd = piStack_24;
|
||||
tmpTextsBegin = piStack_28;
|
||||
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) + 1;
|
||||
node = *GHIDRA_CAST<uint32_t **>((iVar1 + 4));
|
||||
*newNode = iVar1;
|
||||
newNode[1] = GHIDRA_INT(node);
|
||||
*GHIDRA_CAST<int **>((iVar1 + 4)) = newNode;
|
||||
*node = newNode;
|
||||
newNode = piStack_28;
|
||||
if (piStack_28 != GHIDRA_CAST<int *>(0x0)) {
|
||||
for (; newNode != tmpTextsEnd; newNode = newNode + 6) {
|
||||
uVar2 = newNode[5];
|
||||
if (0xf < uVar2) {
|
||||
pvVar3 = (void *)*newNode;
|
||||
size = uVar2 + 1;
|
||||
ptr = pvVar3;
|
||||
if (0xfff < size) {
|
||||
ptr = *(void **)(GHIDRA_CAST<char *>(pvVar3) + -4);
|
||||
size = uVar2 + 0x24;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(pvVar3) + (-4 - GHIDRA_INT(ptr))))) goto LAB_0042ed75;
|
||||
}
|
||||
operator_delete(ptr,size);
|
||||
}
|
||||
newNode[4] = 0;
|
||||
newNode[5] = 0xf;
|
||||
*GHIDRA_CAST<uint8_t *>(newNode) = 0;
|
||||
}
|
||||
uVar2 = ((local_20 - GHIDRA_INT(tmpTextsBegin)) / 0x18) * 0x18;
|
||||
newNode = tmpTextsBegin;
|
||||
if (0xfff < uVar2) {
|
||||
newNode = GHIDRA_CAST<int *>(tmpTextsBegin[-1]);
|
||||
uVar2 = uVar2 + 0x23;
|
||||
if (GHIDRA_CAST<uint8_t *>(0x1f) < GHIDRA_CAST<uint8_t *>((GHIDRA_INT(tmpTextsBegin) + (-4 - GHIDRA_INT(newNode)))))
|
||||
goto LAB_0042ed75;
|
||||
}
|
||||
operator_delete(newNode,uVar2);
|
||||
this = self;
|
||||
}
|
||||
if (pvStack_34 != (void *)0x0) {
|
||||
uVar2 = iStack_2c - GHIDRA_INT(pvStack_34) & 0xfffffff8;
|
||||
pvVar3 = pvStack_34;
|
||||
if (0xfff < uVar2) {
|
||||
pvVar3 = *(void **)(GHIDRA_CAST<char *>(pvStack_34) + -4);
|
||||
uVar2 = uVar2 + 0x23;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(pvStack_34) + (-4 - GHIDRA_INT(pvVar3))))) goto LAB_0042ed75;
|
||||
}
|
||||
operator_delete(pvVar3,uVar2);
|
||||
}
|
||||
if (local_40 != (void *)0x0) {
|
||||
uVar2 = ((iStack_38 - GHIDRA_INT(local_40)) / 0x14) * 0x14;
|
||||
pvVar3 = local_40;
|
||||
if (0xfff < uVar2) {
|
||||
pvVar3 = *(void **)(GHIDRA_CAST<char *>(local_40) + -4);
|
||||
uVar2 = uVar2 + 0x23;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(local_40) + (-4 - GHIDRA_INT(pvVar3))))) goto LAB_0042ed75;
|
||||
}
|
||||
operator_delete(pvVar3,uVar2);
|
||||
}
|
||||
if (pvStack_4c != (void *)0x0) {
|
||||
uVar2 = iStack_44 - GHIDRA_INT(pvStack_4c) & 0xfffffffe;
|
||||
pvVar3 = pvStack_4c;
|
||||
if (0xfff < uVar2) {
|
||||
pvVar3 = *(void **)(GHIDRA_CAST<char *>(pvStack_4c) + -4);
|
||||
uVar2 = uVar2 + 0x23;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(pvStack_4c) + (-4 - GHIDRA_INT(pvVar3))))) {
|
||||
LAB_0042ed75:
|
||||
/* WARNING: Subroutine does not return */
|
||||
_invalid_parameter_noinfo_noreturn();
|
||||
}
|
||||
}
|
||||
operator_delete(pvVar3,uVar2);
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return (void *)(*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(this) + 4)) + 8);
|
||||
}
|
||||
@@ -136,664 +136,3 @@ void NpcHelper::mother_set_collision_class(Entity_NPC *npc, int collisionClass)
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// 0058ac10
|
||||
void NpcHelper::singe_explode_at(Entity_NPC *npc, Vector *position)
|
||||
{
|
||||
int iVar1;
|
||||
uint64_t qVar2;
|
||||
uint32_t uVar3;
|
||||
uint32_t angleRoll;
|
||||
Entity *minion;
|
||||
uint64_t *heapCounter;
|
||||
float fVar4;
|
||||
EntityList_EL minions;
|
||||
EntityList_EL nearby;
|
||||
Vector spawnPos;
|
||||
float angle;
|
||||
float angleSin;
|
||||
ColorMod explosionColor;
|
||||
uint32_t local_18;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
float local_8;
|
||||
uint32_t flagsHigh;
|
||||
Game *game;
|
||||
|
||||
local_8 = -NAN;
|
||||
puStack_c = &LAB_00af54e5;
|
||||
local_10 = ExceptionList;
|
||||
local_18 = __security_cookie ^ GHIDRA_UINT(((&explosionColor)[1]._colorize + 1));
|
||||
ExceptionList = &local_10;
|
||||
explosionColor._offset[0] = 0.0;
|
||||
explosionColor._offset[1] = 0.0;
|
||||
explosionColor._tint[0] = 1.0;
|
||||
explosionColor._tint[1] = 1.0;
|
||||
explosionColor._tint[2] = 1.0;
|
||||
explosionColor._tint[3] = 1.0;
|
||||
explosionColor._offset[2] = 0.0;
|
||||
explosionColor._colorize[0] = 0.0;
|
||||
explosionColor._colorize[1] = 0.0;
|
||||
explosionColor._colorize[2] = 0.0;
|
||||
explosionColor._colorize[3] = 0.0;
|
||||
Game::BombExplosionEffects
|
||||
(g_game,position,60.0,(BitSet128)ZEXT816(0),&explosionColor,GHIDRA_CAST<Entity *>(npc),1.15,1,4,0);
|
||||
Game::ButterBeanFart(g_game,position,120.0,GHIDRA_CAST<Entity *>(npc),0,0);
|
||||
Game::ShakeScreen(g_game,10);
|
||||
game = g_game;
|
||||
npc->_projectileCooldown = npc->_projectileCooldown + 1;
|
||||
EntityList::QueryRadius(GHIDRA_CAST<EntityList *>((GHIDRA_INT(game->_room) + 0x1218)),&nearby,position,100.0,8);
|
||||
local_8 = 0.0;
|
||||
uVar3 = 0;
|
||||
if (nearby._size != 0) {
|
||||
do {
|
||||
iVar1 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(nearby)) + 0x4))) + uVar3 * 4));
|
||||
if ((*GHIDRA_CAST<int *>((iVar1 + 0x28)) == 0x393) && (*GHIDRA_CAST<int *>((iVar1 + 0x2c)) == 1)) {
|
||||
npc->_projectileCooldown = 0;
|
||||
break;
|
||||
}
|
||||
uVar3 = uVar3 + 1;
|
||||
} while (uVar3 < GHIDRA_UINT(nearby._size));
|
||||
}
|
||||
EntityList::QuerySublist(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),&minions,0x393,1,-1,0,0);
|
||||
local_8 = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),1);
|
||||
if (GHIDRA_UINT(minions._size) < npc->_i1 + 4U) {
|
||||
uVar3 = Random();
|
||||
angleRoll = Random();
|
||||
angle = (float)((double)GHIDRA_INT(angleRoll) + __uint_to_double_fixup[-(GHIDRA_INT(angleRoll) >> 0x1f)]) *
|
||||
2.3283064e-10 * 3.14;
|
||||
angle = angle + angle;
|
||||
angleSin = sin(angle);
|
||||
fVar4 = cos(angle);
|
||||
spawnPos.x = fVar4 * 20.0 + (npc->_pos).x;
|
||||
spawnPos.y = angleSin * 20.0 + (npc->_pos).y;
|
||||
minion = Game::Spawn(g_game,0x393,1,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(npc),0,uVar3);
|
||||
flagsHigh = *GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&minion->_flags) + 4));
|
||||
iVar1 = *GHIDRA_CAST<int *>(minion);
|
||||
*GHIDRA_CAST<uint32_t *>(&minion->_flags) = GHIDRA_UINT(minion->_flags) & 0xfffffffb;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&minion->_flags) + 4)) = flagsHigh;
|
||||
(**(code **)(iVar1 + 0xc))();
|
||||
iVar1 = *GHIDRA_CAST<int *>(minion);
|
||||
minion[2]._speedMultiplier = -500.0;
|
||||
minion[2]._prevVelocity.x = 10.0;
|
||||
(**(code **)(iVar1 + 0xc))();
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(minions)) + 0x0))) == '\0') {
|
||||
heapCounter = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
heapCounter = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(minions)) + 0x4))) != 0) {
|
||||
uVar3 = *GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(minions)) + 0x4))) + -4));
|
||||
qVar2 = *heapCounter;
|
||||
*GHIDRA_CAST<uint32_t *>(heapCounter) = GHIDRA_UINT(*heapCounter) - uVar3;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapCounter) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapCounter) + 4)) - GHIDRA_UINT((GHIDRA_UINT(qVar2) < uVar3));
|
||||
free((void *)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(minions)) + 0x4))) + -4));
|
||||
}
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(nearby)) + 0x0))) == '\0') {
|
||||
heapCounter = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
heapCounter = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(nearby)) + 0x4))) != 0) {
|
||||
uVar3 = *GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(nearby)) + 0x4))) + -4));
|
||||
qVar2 = *heapCounter;
|
||||
*GHIDRA_CAST<uint32_t *>(heapCounter) = GHIDRA_UINT(*heapCounter) - uVar3;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapCounter) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapCounter) + 4)) - GHIDRA_UINT((GHIDRA_UINT(qVar2) < uVar3));
|
||||
free((void *)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(nearby)) + 0x4))) + -4));
|
||||
}
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
|
||||
// 0058e260
|
||||
void NpcHelper::siren_charm_familiar(Entity_NPC *npc, Entity_Familiar *familiar)
|
||||
{
|
||||
void *pvVar1;
|
||||
ANM2 *pAVar2;
|
||||
Entity_Familiar *pEVar3;
|
||||
uint32_t seed;
|
||||
Entity *secondEffect;
|
||||
uint32_t *refSlot;
|
||||
Vector local_1c;
|
||||
Vector local_14;
|
||||
int *eraseRef [2];
|
||||
int temp_5f68b46de4;
|
||||
|
||||
pEVar3 = familiar;
|
||||
if ((familiar->_flags & 0x100) == 0) {
|
||||
seed = Random();
|
||||
local_14.x = (pEVar3->_velocity).x;
|
||||
local_14.y = (pEVar3->_velocity).y;
|
||||
local_1c.x = (pEVar3->_pos).x;
|
||||
local_1c.y = (pEVar3->_pos).y;
|
||||
familiar = (Entity_Familiar *)
|
||||
Game::Spawn(g_game,1000,0xa5,&local_1c,&local_14,GHIDRA_CAST<Entity *>(npc),0,seed);
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((familiar)) + 0x45c)))) = 0x4b;
|
||||
refSlot = &familiar->_parent;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((familiar)) + 0x460)))) = 0x4b;
|
||||
if (familiar->_parent != 0) {
|
||||
eraseRef[0] = refSlot;
|
||||
msvc::multiset<unsigned_int>::erase(eraseRef);
|
||||
}
|
||||
*refSlot = npc;
|
||||
if (npc != GHIDRA_CAST<Entity_NPC *>(0x0)) {
|
||||
msvc::multiset<unsigned_int>::insert(refSlot);
|
||||
}
|
||||
refSlot = &familiar->_target;
|
||||
if (*refSlot != 0) {
|
||||
eraseRef[0] = refSlot;
|
||||
msvc::multiset<unsigned_int>::erase(eraseRef);
|
||||
}
|
||||
*refSlot = pEVar3;
|
||||
msvc::multiset<unsigned_int>::insert(refSlot);
|
||||
local_14.y = (float)npc->_sirenPlayerEntity;
|
||||
refSlot = &familiar->_child;
|
||||
if (*refSlot != 0) {
|
||||
eraseRef[0] = refSlot;
|
||||
msvc::multiset<unsigned_int>::erase(eraseRef);
|
||||
}
|
||||
*refSlot = local_14.y;
|
||||
if ((void *)local_14.y != (void *)0x0) {
|
||||
msvc::multiset<unsigned_int>::insert(refSlot);
|
||||
}
|
||||
(**(code **)(*GHIDRA_CAST<int *>(familiar) + 0xc))();
|
||||
seed = Random();
|
||||
local_1c.x = (pEVar3->_velocity).x;
|
||||
local_1c.y = (pEVar3->_velocity).y;
|
||||
local_14.x = (pEVar3->_pos).x;
|
||||
local_14.y = (pEVar3->_pos).y;
|
||||
secondEffect = Game::Spawn(g_game,1000,0xa5,&local_14,&local_1c,GHIDRA_CAST<Entity *>(npc),1,seed);
|
||||
temp_5f68b46de4 = secondEffect->_parent;
|
||||
pAVar2 = &secondEffect[1]._sprite;
|
||||
(pAVar2->_filename)._buf[4] = 'K';
|
||||
(pAVar2->_filename)._buf[5] = '\0';
|
||||
(pAVar2->_filename)._buf[6] = '\0';
|
||||
(pAVar2->_filename)._buf[7] = '\0';
|
||||
pAVar2 = &secondEffect[1]._sprite;
|
||||
(pAVar2->_filename)._buf[8] = 'K';
|
||||
(pAVar2->_filename)._buf[9] = '\0';
|
||||
(pAVar2->_filename)._buf[10] = '\0';
|
||||
(pAVar2->_filename)._buf[0xb] = '\0';
|
||||
if (temp_5f68b46de4 != 0) {
|
||||
familiar = GHIDRA_CAST<Entity_Familiar *>(&secondEffect->_parent);
|
||||
msvc::multiset<unsigned_int>::erase(&familiar);
|
||||
}
|
||||
secondEffect->_parent = npc;
|
||||
msvc::multiset<unsigned_int>::insert(&secondEffect->_parent);
|
||||
if (secondEffect->_target != 0) {
|
||||
familiar = GHIDRA_CAST<Entity_Familiar *>(&secondEffect->_target);
|
||||
msvc::multiset<unsigned_int>::erase(&familiar);
|
||||
}
|
||||
secondEffect->_target = pEVar3;
|
||||
msvc::multiset<unsigned_int>::insert(&secondEffect->_target);
|
||||
pvVar1 = npc->_sirenPlayerEntity;
|
||||
refSlot = &secondEffect->_child;
|
||||
if (*refSlot != 0) {
|
||||
familiar = GHIDRA_CAST<Entity_Familiar *>(refSlot);
|
||||
msvc::multiset<unsigned_int>::erase(&familiar);
|
||||
}
|
||||
*refSlot = pvVar1;
|
||||
if (pvVar1 != (void *)0x0) {
|
||||
msvc::multiset<unsigned_int>::insert(refSlot);
|
||||
}
|
||||
(**(code **)(*GHIDRA_CAST<int *>(secondEffect) + 0xc))();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// 0058e490
|
||||
void NpcHelper::siren_familiar_counts(int *outFreeCount, int *outCharmedCount, int *outTotalCount)
|
||||
{
|
||||
char isCharmable;
|
||||
uint32_t uVar1;
|
||||
int familiarsData;
|
||||
int extraout_ECX;
|
||||
uint32_t uVar2;
|
||||
uint32_t extraout_EDX;
|
||||
uint64_t *heapAllocatedBytes;
|
||||
EntityList_EL local_24;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t uStack_8;
|
||||
int familiar;
|
||||
Game *game;
|
||||
uint64_t oldAllocatedBytes;
|
||||
|
||||
game = g_game;
|
||||
uStack_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00af1690;
|
||||
local_10 = ExceptionList;
|
||||
uVar1 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
||||
ExceptionList = &local_10;
|
||||
*outFreeCount = 0;
|
||||
*outCharmedCount = 0;
|
||||
*outTotalCount = 0;
|
||||
EntityList::QuerySublist(GHIDRA_CAST<EntityList *>((GHIDRA_INT(game->_room) + 0x1218)),&local_24,3,-1,-1,0,0);
|
||||
uVar2 = 0;
|
||||
if (local_24._size != 0) {
|
||||
familiarsData = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4)));
|
||||
do {
|
||||
familiar = *GHIDRA_CAST<int *>((familiarsData + uVar2 * 4));
|
||||
if ((familiar != 0) && (*GHIDRA_CAST<int *>((familiar + 0x28)) == 3)) {
|
||||
isCharmable = FUN_0060dae0(uVar1);
|
||||
if (isCharmable != '\0') {
|
||||
if ((*GHIDRA_CAST<uint32_t *>((extraout_ECX + 0x168)) & 0x100) == 0) {
|
||||
*outFreeCount = *outFreeCount + 1;
|
||||
}
|
||||
else {
|
||||
*outCharmedCount = *outCharmedCount + 1;
|
||||
}
|
||||
*outTotalCount = *outTotalCount + 1;
|
||||
}
|
||||
familiarsData = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4)));
|
||||
uVar2 = extraout_EDX;
|
||||
}
|
||||
uVar2 = uVar2 + 1;
|
||||
} while (uVar2 < GHIDRA_UINT(local_24._size));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x0))) == '\0') {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
heapAllocatedBytes = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
else {
|
||||
heapAllocatedBytes = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4))) != 0) {
|
||||
uVar2 = *GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4))) + -4));
|
||||
oldAllocatedBytes = *heapAllocatedBytes;
|
||||
*GHIDRA_CAST<uint32_t *>(heapAllocatedBytes) = GHIDRA_UINT(*heapAllocatedBytes) - uVar2;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapAllocatedBytes) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapAllocatedBytes) + 4)) - GHIDRA_UINT((GHIDRA_UINT(oldAllocatedBytes) < uVar2));
|
||||
free(GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4))) + -4)));
|
||||
}
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return;
|
||||
}
|
||||
|
||||
// 0058e590
|
||||
int NpcHelper::siren_charmed_count(Entity_NPC *npc)
|
||||
{
|
||||
uint64_t qVar1;
|
||||
uint8_t isDetached;
|
||||
uint64_t *allocatedBytes;
|
||||
int extraout_ECX;
|
||||
uint32_t uVar2;
|
||||
uint32_t extraout_EDX;
|
||||
int count;
|
||||
EntityList_EL local_24;
|
||||
Entity_NPC *siren;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t uStack_8;
|
||||
Entity_Familiar *familiar;
|
||||
|
||||
uStack_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00af38e0;
|
||||
local_10 = ExceptionList;
|
||||
ExceptionList = &local_10;
|
||||
count = 0;
|
||||
siren = npc;
|
||||
EntityList::QuerySublist(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),&local_24,3,-1,-1,0,0);
|
||||
uVar2 = 0;
|
||||
if (local_24._size != 0) {
|
||||
do {
|
||||
familiar = *GHIDRA_CAST<Entity_Familiar **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4))) + uVar2 * 4));
|
||||
if ((((familiar != GHIDRA_CAST<Entity_Familiar *>(0x0)) && (familiar->_type == 3)) &&
|
||||
((familiar->_flags & 0x100) != 0)) &&
|
||||
((isDetached = Entity_Familiar::is_detached_from_follow(familiar), uVar2 = extraout_EDX,
|
||||
isDetached != 0 && (*(void **)(extraout_ECX + 0x410) == siren->_sirenPlayerEntity)))) {
|
||||
count = count + 1;
|
||||
}
|
||||
uVar2 = uVar2 + 1;
|
||||
} while (uVar2 < GHIDRA_UINT(local_24._size));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x0))) == '\0') {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
allocatedBytes = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
else {
|
||||
allocatedBytes = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4))) != 0) {
|
||||
uVar2 = *GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4))) + -4));
|
||||
qVar1 = *allocatedBytes;
|
||||
*GHIDRA_CAST<uint32_t *>(allocatedBytes) = GHIDRA_UINT(*allocatedBytes) - uVar2;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) - GHIDRA_UINT((GHIDRA_UINT(qVar1) < uVar2));
|
||||
free((void *)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_24)) + 0x4))) + -4));
|
||||
}
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return count;
|
||||
}
|
||||
|
||||
// 0058e680
|
||||
void NpcHelper::siren_pick(Entity_NPC *npc)
|
||||
{
|
||||
RNG rng;
|
||||
uint64_t qVar1;
|
||||
int charmedCount;
|
||||
uint32_t uVar2;
|
||||
int familiar;
|
||||
float fVar3;
|
||||
uint32_t outcomeCount;
|
||||
float fVar4;
|
||||
uint64_t *heapCounter;
|
||||
uint32_t *outcomesBegin;
|
||||
uint32_t *controlledCount;
|
||||
uint32_t *outcomeCursor;
|
||||
float roomCenterY;
|
||||
float rightEdgeStart;
|
||||
float leftEdgeStart;
|
||||
uint32_t *controlledTotal;
|
||||
EntityList_EL local_64;
|
||||
Entity_NPC *local_54;
|
||||
uint32_t *picker;
|
||||
uint32_t *outcomesEnd;
|
||||
uint32_t *outcomesCapacity;
|
||||
float local_44;
|
||||
float local_40;
|
||||
int local_3c [7];
|
||||
uint8_t *puStack_20;
|
||||
void *local_1c;
|
||||
uint8_t *puStack_18;
|
||||
uint32_t local_14;
|
||||
void *room;
|
||||
int *weight;
|
||||
|
||||
puStack_20 = GHIDRA_CAST<uint8_t *>((local_3c + 0xe));
|
||||
puStack_18 = &LAB_00af55ad;
|
||||
local_1c = ExceptionList;
|
||||
local_3c[6] = __security_cookie ^ GHIDRA_UINT((local_3c + 0xb));
|
||||
ExceptionList = &local_1c;
|
||||
controlledCount = GHIDRA_CAST<uint32_t *>(0x0);
|
||||
local_3c[4] = 0xc;
|
||||
local_3c[0] = 3;
|
||||
local_3c[1] = 8;
|
||||
local_3c[2] = 9;
|
||||
local_3c[3] = 10;
|
||||
local_3c[5] = 6;
|
||||
picker = GHIDRA_CAST<uint32_t *>(0x0);
|
||||
outcomesEnd = GHIDRA_CAST<uint32_t *>(0x0);
|
||||
outcomesCapacity = GHIDRA_CAST<uint32_t *>(0x0);
|
||||
local_14 = 0;
|
||||
local_54 = npc;
|
||||
siren_familiar_counts(GHIDRA_CAST<int *>(&local_40),GHIDRA_CAST<int *>(&local_44),&local_64._size);
|
||||
charmedCount = siren_charmed_count(local_54);
|
||||
controlledTotal = GHIDRA_CAST<uint32_t *>(0x0);
|
||||
EntityList::QuerySublist(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),&local_64,3,-1,-1,0,0);
|
||||
fVar4 = 0.0;
|
||||
outcomesBegin = controlledCount;
|
||||
outcomeCursor = GHIDRA_CAST<uint32_t *>(0x0);
|
||||
if ((float)local_64._size != 0.0) {
|
||||
do {
|
||||
familiar = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x4))) + GHIDRA_INT(fVar4) * 4));
|
||||
if ((familiar == 0) || (*GHIDRA_CAST<int *>((familiar + 0x28)) != 3)) {
|
||||
familiar = 0;
|
||||
}
|
||||
if (((*GHIDRA_CAST<uint32_t *>((familiar + 0x168)) & 0x100) != 0) &&
|
||||
(*(void **)(familiar + 0x410) == local_54->_sirenPlayerEntity)) {
|
||||
controlledCount = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(controlledCount) + 1));
|
||||
}
|
||||
fVar4 = (float)(GHIDRA_INT(fVar4) + 1);
|
||||
} while (GHIDRA_UINT(fVar4) < GHIDRA_UINT(local_64._size));
|
||||
outcomesBegin = picker;
|
||||
outcomeCursor = outcomesEnd;
|
||||
controlledTotal = controlledCount;
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x0))) == '\0') {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
heapCounter = &g_allocatedBytesNoHeap;
|
||||
}
|
||||
else {
|
||||
heapCounter = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
|
||||
}
|
||||
if ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x4))) != 0) {
|
||||
uVar2 = *GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x4))) + -4));
|
||||
qVar1 = *heapCounter;
|
||||
*GHIDRA_CAST<uint32_t *>(heapCounter) = GHIDRA_UINT(*heapCounter) - uVar2;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapCounter) + 4)) =
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(heapCounter) + 4)) - GHIDRA_UINT((GHIDRA_UINT(qVar1) < uVar2));
|
||||
free(GHIDRA_CAST<uint32_t *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x4))) + -4)));
|
||||
}
|
||||
local_14 = local_14 & 0xffffff00;
|
||||
}
|
||||
if ((*GHIDRA_CAST<char *>((GHIDRA_INT(&(local_54->_v2).x) + 1)) == '\0') && (GHIDRA_INT(controlledTotal) < 2)) {
|
||||
fVar3 = (float)(GHIDRA_INT(controlledTotal) * -0x21 + 100);
|
||||
fVar4 = 0.0;
|
||||
if (0 < GHIDRA_INT(fVar3)) {
|
||||
fVar4 = fVar3;
|
||||
}
|
||||
if (0 < GHIDRA_INT(fVar4)) {
|
||||
local_64._capacity = 1;
|
||||
local_64._size = GHIDRA_INT(fVar4);
|
||||
msvc::vector<8byte>::_Emplace_reallocate(0,&local_64._capacity);
|
||||
outcomesBegin = picker;
|
||||
outcomeCursor = outcomesEnd;
|
||||
}
|
||||
}
|
||||
if (((*GHIDRA_CAST<char *>((GHIDRA_INT(&(local_54->_v2).x) + 3)) == '\0') && (GHIDRA_INT(local_44) < 6)) &&
|
||||
(0 < GHIDRA_INT(local_40))) {
|
||||
fVar3 = (float)(GHIDRA_INT(local_40) * 0x21 + GHIDRA_INT(local_44) * -0xf);
|
||||
fVar4 = 1.4013e-45;
|
||||
if (1 < GHIDRA_INT(fVar3)) {
|
||||
fVar4 = fVar3;
|
||||
}
|
||||
local_40 = 2.10195e-43;
|
||||
if (GHIDRA_INT(fVar4) < 0x96) {
|
||||
local_40 = fVar4;
|
||||
}
|
||||
uVar2 = 0;
|
||||
outcomeCount = GHIDRA_INT(outcomeCursor) - GHIDRA_INT(outcomesBegin) >> 3;
|
||||
if (outcomeCount != 0) {
|
||||
do {
|
||||
if (outcomesBegin[uVar2 * 2] == 3) {
|
||||
weight = outcomesBegin + uVar2 * 2 + 1;
|
||||
*weight = *weight + GHIDRA_INT(local_40);
|
||||
if (*weight < 0) {
|
||||
outcomesBegin[uVar2 * 2 + 1] = 0;
|
||||
}
|
||||
goto LAB_0058e8af;
|
||||
}
|
||||
uVar2 = uVar2 + 1;
|
||||
} while (uVar2 < outcomeCount);
|
||||
}
|
||||
if (0 < GHIDRA_INT(local_40)) {
|
||||
local_64._capacity = 3;
|
||||
local_64._size = GHIDRA_INT(local_40);
|
||||
if (outcomeCursor == outcomesCapacity) {
|
||||
msvc::vector<8byte>::_Emplace_reallocate(outcomeCursor,&local_64._capacity);
|
||||
outcomesBegin = picker;
|
||||
outcomeCursor = outcomesEnd;
|
||||
}
|
||||
else {
|
||||
*outcomeCursor = 3;
|
||||
outcomeCursor[1] = local_40;
|
||||
outcomesEnd = outcomeCursor + 2;
|
||||
outcomeCursor = outcomesEnd;
|
||||
}
|
||||
}
|
||||
}
|
||||
LAB_0058e8af:
|
||||
if (*GHIDRA_CAST<char *>(&(local_54->_v2).y) == '\0') {
|
||||
fVar4 = 4.62428e-44;
|
||||
if (0x21 < charmedCount * 0x21) {
|
||||
fVar4 = (float)(charmedCount * 0x21);
|
||||
}
|
||||
local_40 = 1.4013e-43;
|
||||
if (GHIDRA_INT(fVar4) < 100) {
|
||||
local_40 = fVar4;
|
||||
}
|
||||
outcomeCount = GHIDRA_INT(outcomeCursor) - GHIDRA_INT(outcomesBegin) >> 3;
|
||||
uVar2 = 0;
|
||||
if (outcomeCount != 0) {
|
||||
do {
|
||||
if (outcomesBegin[uVar2 * 2] == 4) {
|
||||
weight = outcomesBegin + uVar2 * 2 + 1;
|
||||
*weight = *weight + GHIDRA_INT(local_40);
|
||||
if (*weight < 0) {
|
||||
outcomesBegin[uVar2 * 2 + 1] = 0;
|
||||
}
|
||||
goto LAB_0058e94b;
|
||||
}
|
||||
uVar2 = uVar2 + 1;
|
||||
} while (uVar2 < outcomeCount);
|
||||
}
|
||||
if (0 < GHIDRA_INT(local_40)) {
|
||||
local_64._capacity = 4;
|
||||
local_64._size = GHIDRA_INT(local_40);
|
||||
if (outcomeCursor == outcomesCapacity) {
|
||||
msvc::vector<8byte>::_Emplace_reallocate(outcomeCursor,&local_64._capacity);
|
||||
outcomesBegin = picker;
|
||||
outcomeCursor = outcomesEnd;
|
||||
}
|
||||
else {
|
||||
*outcomeCursor = 4;
|
||||
outcomeCursor[1] = local_40;
|
||||
outcomesEnd = outcomeCursor + 2;
|
||||
outcomeCursor = outcomesEnd;
|
||||
}
|
||||
}
|
||||
}
|
||||
LAB_0058e94b:
|
||||
if ((*GHIDRA_CAST<char *>((GHIDRA_INT(&(local_54->_v2).y) + 1)) == '\0') && (local_44 == 0.0)) {
|
||||
local_64._size = GHIDRA_INT((local_54->_pos).y);
|
||||
room = g_game->_room;
|
||||
fVar4 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0x1c));
|
||||
fVar3 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0x20));
|
||||
rightEdgeStart = fVar4 - 80.0;
|
||||
local_40 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0x14));
|
||||
leftEdgeStart = local_40 + 80.0;
|
||||
roomCenterY = (fVar3 - *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0x18))) * 0.5 + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0x18));
|
||||
local_44 = (local_54->_pos).x;
|
||||
if (rightEdgeStart == fVar4) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Start and End parameters cannot be the same!"));
|
||||
}
|
||||
fVar4 = (local_44 - rightEdgeStart) / (fVar4 - rightEdgeStart);
|
||||
if (fVar4 <= 0.0) {
|
||||
fVar4 = 0.0;
|
||||
}
|
||||
if (1.0 <= fVar4) {
|
||||
fVar4 = 1.0;
|
||||
}
|
||||
if (leftEdgeStart == local_40) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Start and End parameters cannot be the same!"));
|
||||
}
|
||||
local_44 = (local_44 - leftEdgeStart) / (local_40 - leftEdgeStart);
|
||||
if (local_44 <= 0.0) {
|
||||
local_44 = 0.0;
|
||||
}
|
||||
if (1.0 <= local_44) {
|
||||
local_44 = 1.0;
|
||||
}
|
||||
if (roomCenterY == fVar3) {
|
||||
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Start and End parameters cannot be the same!"));
|
||||
}
|
||||
outcomeCount = GHIDRA_INT(outcomeCursor) - GHIDRA_INT(outcomesBegin) >> 3;
|
||||
uVar2 = 0;
|
||||
fVar3 = ((float)local_64._size - roomCenterY) / (fVar3 - roomCenterY);
|
||||
if (fVar3 <= 0.0) {
|
||||
fVar3 = 0.0;
|
||||
}
|
||||
if (1.0 <= fVar3) {
|
||||
fVar3 = 1.0;
|
||||
}
|
||||
fVar4 = (float)GHIDRA_INT(((fVar3 + 0.0 + local_44 + 0.0 + fVar4 + 0.0) * 100.0));
|
||||
if (outcomeCount != 0) {
|
||||
do {
|
||||
if (outcomesBegin[uVar2 * 2] == 5) {
|
||||
weight = outcomesBegin + uVar2 * 2 + 1;
|
||||
*weight = *weight + GHIDRA_INT(fVar4);
|
||||
if (*weight < 0) {
|
||||
outcomesBegin[uVar2 * 2 + 1] = 0;
|
||||
}
|
||||
goto LAB_0058eb5f;
|
||||
}
|
||||
uVar2 = uVar2 + 1;
|
||||
} while (uVar2 < outcomeCount);
|
||||
}
|
||||
if (0 < GHIDRA_INT(fVar4)) {
|
||||
local_64._capacity = 5;
|
||||
local_64._size = GHIDRA_INT(fVar4);
|
||||
if (outcomeCursor == outcomesCapacity) {
|
||||
msvc::vector<8byte>::_Emplace_reallocate(outcomeCursor,&local_64._capacity);
|
||||
outcomesBegin = picker;
|
||||
outcomeCursor = outcomesEnd;
|
||||
}
|
||||
else {
|
||||
*outcomeCursor = 5;
|
||||
outcomeCursor[1] = fVar4;
|
||||
outcomesEnd = outcomeCursor + 2;
|
||||
outcomeCursor = outcomesEnd;
|
||||
}
|
||||
}
|
||||
LAB_0058eb5f:
|
||||
if (outcomesBegin != outcomeCursor) goto LAB_0058ebbb;
|
||||
}
|
||||
else if (GHIDRA_INT(local_44) < 1) goto LAB_0058eb5f;
|
||||
uVar2 = 0;
|
||||
outcomeCount = GHIDRA_INT(outcomeCursor) - GHIDRA_INT(outcomesBegin) >> 3;
|
||||
if (outcomeCount != 0) {
|
||||
do {
|
||||
if (outcomesBegin[uVar2 * 2] == 0) {
|
||||
weight = outcomesBegin + uVar2 * 2 + 1;
|
||||
*weight = *weight + 100;
|
||||
if (*weight < 0) {
|
||||
outcomesBegin[uVar2 * 2 + 1] = 0;
|
||||
}
|
||||
goto LAB_0058ebbb;
|
||||
}
|
||||
uVar2 = uVar2 + 1;
|
||||
} while (uVar2 < outcomeCount);
|
||||
}
|
||||
local_64._size = 100;
|
||||
(*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x4))) = (*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x4))) & 0xffffffff;
|
||||
if (outcomeCursor == outcomesCapacity) {
|
||||
msvc::vector<8byte>::_Emplace_reallocate(outcomeCursor,&local_64._capacity);
|
||||
}
|
||||
else {
|
||||
*outcomeCursor = 0;
|
||||
outcomeCursor[1] = 100;
|
||||
outcomesEnd = outcomeCursor + 2;
|
||||
}
|
||||
LAB_0058ebbb:
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x0))) = Random();
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x0))) | 1;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x4))) = 5;
|
||||
local_64._capacity = 9;
|
||||
local_64._size = 7;
|
||||
rng._shift1 = 5;
|
||||
rng._seed = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_64)) + 0x0)));
|
||||
rng._shift2 = 9;
|
||||
rng._shift3 = 7;
|
||||
uVar2 = WeightedOutcomePicker::PickOutcome(GHIDRA_CAST<WeightedOutcomePicker *>(&picker),rng);
|
||||
if (uVar2 == 0) {
|
||||
*GHIDRA_CAST<uint16_t *>((GHIDRA_INT(&local_54->_projectileCooldown) + 2)) = 0;
|
||||
}
|
||||
else {
|
||||
charmedCount = local_3c[uVar2];
|
||||
*GHIDRA_CAST<uint16_t *>(&local_54->_projectileCooldown) = 0xffff;
|
||||
local_54->_state = charmedCount;
|
||||
}
|
||||
if (picker != GHIDRA_CAST<uint32_t *>(0x0)) {
|
||||
uVar2 = GHIDRA_INT(outcomesCapacity) - GHIDRA_INT(picker) & 0xfffffff8;
|
||||
outcomesBegin = picker;
|
||||
if (0xfff < uVar2) {
|
||||
outcomesBegin = GHIDRA_CAST<uint32_t *>(picker[-1]);
|
||||
uVar2 = uVar2 + 0x23;
|
||||
if (0x1f < GHIDRA_UINT((GHIDRA_INT(picker) + (-4 - GHIDRA_INT(outcomesBegin))))) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
_invalid_parameter_noinfo_noreturn();
|
||||
}
|
||||
}
|
||||
operator_delete(outcomesBegin,uVar2);
|
||||
}
|
||||
ExceptionList = local_1c;
|
||||
return;
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
#include "classes.h"
|
||||
|
||||
// 0042f850
|
||||
Shape::Shape(void *other)
|
||||
{
|
||||
void *nameDst = this;
|
||||
uint32_t uVar1;
|
||||
size_t indexBytes;
|
||||
uint32_t allocBytes;
|
||||
void *pvVar2;
|
||||
void *pvVar3;
|
||||
uint32_t pointsEnd;
|
||||
void *namesAlloc;
|
||||
uint32_t extraout_ECX;
|
||||
char *nameDst;
|
||||
void *local_10;
|
||||
uint8_t *puStack_c;
|
||||
uint32_t local_8;
|
||||
uint32_t *namesBegin;
|
||||
|
||||
local_8 = 0xffffffff;
|
||||
puStack_c = &LAB_00af1ee6;
|
||||
local_10 = ExceptionList;
|
||||
uVar1 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
||||
ExceptionList = &local_10;
|
||||
*GHIDRA_CAST<uint32_t *>(nameDst) = *GHIDRA_CAST<uint32_t *>(other);
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 4)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(other) + 4));
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 8)) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0xc)) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x10)) = 0;
|
||||
pvVar3 = *(void **)(GHIDRA_CAST<char *>(other) + 8);
|
||||
if (pvVar3 != *(void **)(GHIDRA_CAST<char *>(other) + 0xc)) {
|
||||
indexBytes = GHIDRA_INT(*(void **)(GHIDRA_CAST<char *>(other) + 0xc)) - GHIDRA_INT(pvVar3);
|
||||
allocBytes = GHIDRA_INT(indexBytes) >> 1;
|
||||
if (0x7fffffff < allocBytes) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_0040cee0(uVar1);
|
||||
}
|
||||
allocBytes = allocBytes * 2;
|
||||
pvVar2 = msvc::_Allocate(allocBytes);
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 8) = pvVar2;
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0xc) = pvVar2;
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0x10) = (void *)(GHIDRA_INT(pvVar2) + allocBytes);
|
||||
pvVar2 = *(void **)(GHIDRA_CAST<char *>(nameDst) + 8);
|
||||
memmove(pvVar2,pvVar3,indexBytes);
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0xc) = (void *)(allocBytes + GHIDRA_INT(pvVar2));
|
||||
}
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x14)) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x18)) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x1c)) = 0;
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(other) + 0x14)) != *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(other) + 0x18))) {
|
||||
allocBytes = (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(other) + 0x18)) - *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(other) + 0x14))) / 0x14;
|
||||
if (0xccccccc < allocBytes) goto LAB_0042fa29;
|
||||
allocBytes = allocBytes * 0x14;
|
||||
pvVar3 = msvc::_Allocate(allocBytes);
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0x14) = pvVar3;
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0x18) = pvVar3;
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0x1c) = (void *)(GHIDRA_INT(pvVar3) + allocBytes);
|
||||
pointsEnd = FUN_0042f800(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x14)),extraout_ECX);
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x18)) = pointsEnd;
|
||||
}
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
||||
FUN_0042f1a0(GHIDRA_INT(other) + 0x20);
|
||||
namesBegin = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(nameDst) + 0x2c));
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 2;
|
||||
*namesBegin = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x30)) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(nameDst) + 0x34)) = 0;
|
||||
pvVar3 = *(void **)(GHIDRA_CAST<char *>(other) + 0x2c);
|
||||
pvVar2 = *(void **)(GHIDRA_CAST<char *>(other) + 0x30);
|
||||
if (pvVar3 != pvVar2) {
|
||||
allocBytes = (GHIDRA_INT(pvVar2) - GHIDRA_INT(pvVar3)) / 0x18;
|
||||
if (0xaaaaaaa < allocBytes) {
|
||||
LAB_0042fa29:
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_0040cee0(uVar1);
|
||||
}
|
||||
allocBytes = allocBytes * 0x18;
|
||||
namesAlloc = msvc::_Allocate(allocBytes);
|
||||
*namesBegin = namesAlloc;
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0x30) = namesAlloc;
|
||||
*(void **)(GHIDRA_CAST<char *>(nameDst) + 0x34) = (void *)(GHIDRA_INT(namesAlloc) + allocBytes);
|
||||
nameDst = GHIDRA_CAST<char *>(*namesBegin);
|
||||
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),4);
|
||||
do {
|
||||
(GHIDRA_CAST<msvc::string *>((nameDst)))->msvc::string::string(pvVar3);
|
||||
nameDst = nameDst + 0x18;
|
||||
pvVar3 = (void *)(GHIDRA_INT(pvVar3) + 0x18);
|
||||
} while (pvVar3 != pvVar2);
|
||||
*GHIDRA_CAST<char **>((GHIDRA_CAST<char *>(nameDst) + 0x30)) = nameDst;
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return nameDst;
|
||||
}
|
||||
@@ -8250,8 +8250,6 @@ void CommandThread::post_command(void *command) { generated_stub("CommandThread:
|
||||
DamageInfo::DamageInfo() { generated_stub("DamageInfo::DamageInfo 006a8190"); }
|
||||
void DateTime::set_from_yyyymmdd(void *dateTime, int yyyymmdd) { generated_stub("DateTime::set_from_yyyymmdd 0085af30"); }
|
||||
void DateTime::constructor(uint8_t isNow) { generated_stub("DateTime::constructor 00a24270"); }
|
||||
void DebugRenderer::Render() { generated_stub("DebugRenderer::Render 0042dbb0"); }
|
||||
void * DebugRenderer::Get(int Index, uint8_t Unk) { generated_stub("DebugRenderer::Get 0042eb10"); }
|
||||
Vector * Vector::operator_mul(Vector *outResult, float *scalar, Vector *vector) { generated_stub("Vector::operator_mul 004171d0"); }
|
||||
Vector * Vector::ToCardinal(Vector *outResult, Vector *vec) { generated_stub("Vector::ToCardinal 0067f170"); }
|
||||
Vector * Vector::mul_065(Vector *outResult, Vector *source) { generated_stub("Vector::mul_065 0067f2b0"); }
|
||||
@@ -9130,11 +9128,6 @@ void NetworkManager::receive_packet(uint64_t *sender, void *buffer, int size) {
|
||||
void * NetworkManager::get_peer(void *outPeer, uint64_t *userId) { generated_stub("NetworkManager::get_peer 00a790b0"); }
|
||||
int * NpcHelper::chub_nearest_segment(int *param_1, int param_2) { generated_stub("NpcHelper::chub_nearest_segment 00499a50"); }
|
||||
void NpcHelper::mother_set_collision_class(Entity_NPC *npc, int collisionClass) { generated_stub("NpcHelper::mother_set_collision_class 005688c0"); }
|
||||
void NpcHelper::singe_explode_at(Entity_NPC *npc, Vector *position) { generated_stub("NpcHelper::singe_explode_at 0058ac10"); }
|
||||
void NpcHelper::siren_charm_familiar(Entity_NPC *npc, Entity_Familiar *familiar) { generated_stub("NpcHelper::siren_charm_familiar 0058e260"); }
|
||||
void NpcHelper::siren_familiar_counts(int *outFreeCount, int *outCharmedCount, int *outTotalCount) { generated_stub("NpcHelper::siren_familiar_counts 0058e490"); }
|
||||
int NpcHelper::siren_charmed_count(Entity_NPC *npc) { generated_stub("NpcHelper::siren_charmed_count 0058e590"); }
|
||||
void NpcHelper::siren_pick(Entity_NPC *npc) { generated_stub("NpcHelper::siren_pick 0058e680"); }
|
||||
void OnlineChat::render(Vector *position, uint8_t isInputLine, uint8_t isCursorVisible, float alpha) { generated_stub("OnlineChat::render 0091d2b0"); }
|
||||
void OnlineChat::destructor() { generated_stub("OnlineChat::destructor 0091db20"); }
|
||||
void OnlineChat::render_all(Vector *pos, uint8_t isFocused) { generated_stub("OnlineChat::render_all 0091e650"); }
|
||||
@@ -9158,7 +9151,6 @@ void ReferenceCountBase::vfunc_5() { generated_stub("ReferenceCountBase::vfunc_5
|
||||
ReferenceCountBase::ReferenceCountBase() { generated_stub("ReferenceCountBase::ReferenceCountBase 0040cc10"); }
|
||||
void * SaveDataManager::open_file_read(uint8_t *fileName) { generated_stub("SaveDataManager::open_file_read 00a24fd0"); }
|
||||
void * SaveDataManager::open_file_write(uint8_t *path, int mode) { generated_stub("SaveDataManager::open_file_write 00a25090"); }
|
||||
Shape::Shape(void *other) { generated_stub("Shape::Shape 0042f850"); }
|
||||
void SharedPtr::assign(void *other) { generated_stub("SharedPtr::assign 004d74a0"); }
|
||||
void SharedPtrPair::constructor() { generated_stub("SharedPtrPair::constructor 00424c40"); }
|
||||
SharedPtrPair::~SharedPtrPair() { generated_stub("SharedPtrPair::~SharedPtrPair 00424cd0"); }
|
||||
@@ -9527,7 +9519,6 @@ ItemConfig * Isaac::GetItemConfig() { generated_stub("Isaac::GetItemConfig 0042c
|
||||
int FUN_0042d040() { generated_stub("FUN_0042d040 0042d040"); }
|
||||
void FUN_0042edb0() { generated_stub("FUN_0042edb0 0042edb0"); }
|
||||
void FUN_0042ede0(uint32_t *param_1) { generated_stub("FUN_0042ede0 0042ede0"); }
|
||||
void push_shape_points(void *self, Capsule *capsule) { generated_stub("push_shape_points 0042eef0"); }
|
||||
void FUN_0042f050(uint32_t param_1) { generated_stub("FUN_0042f050 0042f050"); }
|
||||
void FUN_0042f060() { generated_stub("FUN_0042f060 0042f060"); }
|
||||
void FUN_0042f0c0() { generated_stub("FUN_0042f0c0 0042f0c0"); }
|
||||
@@ -9694,8 +9685,6 @@ void set_byte_0x101(void *self, uint8_t value) { generated_stub("set_byte_0x101
|
||||
int FUN_00505ca0() { generated_stub("FUN_00505ca0 00505ca0"); }
|
||||
uint32_t * FUN_00505ce0() { generated_stub("FUN_00505ce0 00505ce0"); }
|
||||
void npc_distribute_orbit_angles(Entity_NPC *npc) { generated_stub("npc_distribute_orbit_angles 00547040"); }
|
||||
int FUN_0054d1b0(int param_1) { generated_stub("FUN_0054d1b0 0054d1b0"); }
|
||||
void NpcAI::ENTITY_BUTT_SLICKER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BUTT_SLICKER 0054d250"); }
|
||||
void FUN_00557b50(uint32_t param_1) { generated_stub("FUN_00557b50 00557b50"); }
|
||||
void FUN_00557b70(uint8_t *param_1) { generated_stub("FUN_00557b70 00557b70"); }
|
||||
bool FUN_00557bb0(int *param_1) { generated_stub("FUN_00557bb0 00557bb0"); }
|
||||
@@ -9709,13 +9698,8 @@ uint32_t * FUN_00575fe0(int *param_1, uint32_t param_2, uint32_t param_3, uint32
|
||||
void FUN_00579700() { generated_stub("FUN_00579700 00579700"); }
|
||||
uint32_t FUN_00579760() { generated_stub("FUN_00579760 00579760"); }
|
||||
uint32_t FUN_0058ab60() { generated_stub("FUN_0058ab60 0058ab60"); }
|
||||
void NpcAI::ENTITY_SINGE_body(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SINGE_body 0058aed0"); }
|
||||
uint8_t FUN_0058e210() { generated_stub("FUN_0058e210 0058e210"); }
|
||||
void FUN_0058e240(uint32_t param_1) { generated_stub("FUN_0058e240 0058e240"); }
|
||||
void NpcAI::ENTITY_SIREN_main(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SIREN_main 0058ec70"); }
|
||||
void NpcAI::siren_release_stolen_items(Entity_NPC *npc) { generated_stub("NpcAI::siren_release_stolen_items 005911b0"); }
|
||||
void NpcAI::ENTITY_SIREN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SIREN 00591460"); }
|
||||
void NpcAI::ENTITY_SIREN_HELPER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_SIREN_HELPER 00591cc0"); }
|
||||
uint32_t * FUN_00598290(uint32_t *param_1, uint32_t *param_2) { generated_stub("FUN_00598290 00598290"); }
|
||||
void FUN_005a6fb0() { generated_stub("FUN_005a6fb0 005a6fb0"); }
|
||||
uint8_t * FUN_005aaf60(uint8_t *param_1) { generated_stub("FUN_005aaf60 005aaf60"); }
|
||||
@@ -9751,9 +9735,6 @@ void FUN_005c7bf0(int *param_1, int *param_2) { generated_stub("FUN_005c7bf0 005
|
||||
void FUN_005c7d30(int param_1) { generated_stub("FUN_005c7d30 005c7d30"); }
|
||||
void FUN_005c7e30(int param_1) { generated_stub("FUN_005c7e30 005c7e30"); }
|
||||
void FUN_005c7ef0(int param_1) { generated_stub("FUN_005c7ef0 005c7ef0"); }
|
||||
void FUN_005c7f20(int param_1) { generated_stub("FUN_005c7f20 005c7f20"); }
|
||||
void everything_jar_crack_the_sky_timer(int param_1) { generated_stub("everything_jar_crack_the_sky_timer 005c8020"); }
|
||||
void everything_jar_shopkeeper_rain_timer(int param_1) { generated_stub("everything_jar_shopkeeper_rain_timer 005c83f0"); }
|
||||
void FUN_005ca566(uint32_t param_1, uint32_t param_2, int param_3) { generated_stub("FUN_005ca566 005ca566"); }
|
||||
void FUN_005ca880() { generated_stub("FUN_005ca880 005ca880"); }
|
||||
void FUN_005cba20() { generated_stub("FUN_005cba20 005cba20"); }
|
||||
@@ -10117,7 +10098,6 @@ void FUN_006daab0() { generated_stub("FUN_006daab0 006daab0"); }
|
||||
void FUN_006dac00(uint32_t *param_1, uint32_t param_2) { generated_stub("FUN_006dac00 006dac00"); }
|
||||
float log_precise(float value) { generated_stub("log_precise 006dac30"); }
|
||||
void FUN_006daca0(uint32_t param_1) { generated_stub("FUN_006daca0 006daca0"); }
|
||||
uint32_t FUN_006e1910(uint32_t param_1) { generated_stub("FUN_006e1910 006e1910"); }
|
||||
void FUN_006ee330() { generated_stub("FUN_006ee330 006ee330"); }
|
||||
Vector * Isaac::GetRandomPickupVelocity(Vector *outVelocity, Vector *position, uint32_t pickupVelType, RNG *rng) { generated_stub("Isaac::GetRandomPickupVelocity 006ee440"); }
|
||||
int FUN_006ee640(int param_1, int param_2, uint32_t *param_3, uint32_t param_4) { generated_stub("FUN_006ee640 006ee640"); }
|
||||
@@ -10310,7 +10290,6 @@ void FUN_00757980(uint32_t *param_1) { generated_stub("FUN_00757980 00757980");
|
||||
void FUN_00757a10() { generated_stub("FUN_00757a10 00757a10"); }
|
||||
uint32_t FUN_00758590() { generated_stub("FUN_00758590 00758590"); }
|
||||
int FUN_00759260() { generated_stub("FUN_00759260 00759260"); }
|
||||
void FUN_00770640(float *param_1) { generated_stub("FUN_00770640 00770640"); }
|
||||
void FUN_007792f0(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_007792f0 007792f0"); }
|
||||
uint32_t FUN_007826c0() { generated_stub("FUN_007826c0 007826c0"); }
|
||||
void FUN_0078b330(uint32_t *param_1) { generated_stub("FUN_0078b330 0078b330"); }
|
||||
@@ -10322,8 +10301,6 @@ void FUN_007b8c00(int param_1) { generated_stub("FUN_007b8c00 007b8c00"); }
|
||||
void FUN_007c2e80() { generated_stub("FUN_007c2e80 007c2e80"); }
|
||||
void FUN_007cb4f0() { generated_stub("FUN_007cb4f0 007cb4f0"); }
|
||||
void FUN_007cf940() { generated_stub("FUN_007cf940 007cf940"); }
|
||||
long double FUN_007cf9a0(float *param_1, KColor *param_2, uint32_t param_3) { generated_stub("FUN_007cf9a0 007cf9a0"); }
|
||||
uint8_t * FUN_007cfa90() { generated_stub("FUN_007cfa90 007cfa90"); }
|
||||
void FUN_007d3330(int param_1) { generated_stub("FUN_007d3330 007d3330"); }
|
||||
void FUN_007d9360() { generated_stub("FUN_007d9360 007d9360"); }
|
||||
uint32_t FUN_007d9ca0() { generated_stub("FUN_007d9ca0 007d9ca0"); }
|
||||
|
||||
Reference in new issue
Block a user