Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34 installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the intro cutscene plays through and the main menu's frame loop runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1793 lines
82 KiB
C++
1793 lines
82 KiB
C++
#include "classes.h"
|
|
|
|
// 008ebfb0
|
|
void GameOver::RenderItemSprite(int memberIndex)
|
|
{
|
|
ColorMod color;
|
|
ColorMod color_00;
|
|
Vector position;
|
|
Vector position_00;
|
|
Vector position_01;
|
|
Vector pos;
|
|
Vector pos_00;
|
|
GameOver *pGVar1;
|
|
char cVar2;
|
|
ANM2 *memberSprite;
|
|
int *user;
|
|
int iVar3;
|
|
std_string *right;
|
|
uint8_t *******pppppppbVar4;
|
|
float *nullFrame;
|
|
LayerState *pLVar5;
|
|
float fVar6;
|
|
void *settings;
|
|
KColor *color_01;
|
|
uint8_t unk;
|
|
void *pvVar7;
|
|
KColor *color_02;
|
|
int *size;
|
|
uint32_t uVar8;
|
|
uint8_t *portraitSprite;
|
|
bool isKeyboardInput;
|
|
float fVar9;
|
|
float fVar10;
|
|
float fVar11;
|
|
Color aCStackY_173c [128];
|
|
uint8_t in_stack_fffffef0 [28];
|
|
uint32_t in_stack_ffffff0c;
|
|
int in_stack_ffffff10;
|
|
KColor *in_stack_ffffff14;
|
|
KColor *pos_01;
|
|
char *nullLayerName;
|
|
FontSettings fontSettings [6];
|
|
uint32_t local_b8;
|
|
uint32_t local_b4;
|
|
uint8_t **local_b0;
|
|
Font *local_ac;
|
|
int *savedUser;
|
|
KColor local_a4;
|
|
GameOver *local_90;
|
|
float local_8c;
|
|
int cursorPlayerNumber;
|
|
float slotY;
|
|
float slotX;
|
|
int playerNumber;
|
|
uint8_t local_76;
|
|
char isSwapAllowed;
|
|
uint8_t local_74;
|
|
char isKeyboard;
|
|
char isLocalMember;
|
|
uint8_t isVisible;
|
|
uint8_t local_70 [8];
|
|
char local_68 [8];
|
|
uint32_t local_60;
|
|
uint32_t local_5c;
|
|
uint8_t *******local_58;
|
|
KColor local_54;
|
|
void *numberText [3];
|
|
uint8_t **local_34;
|
|
KColor local_30;
|
|
void *local_1c;
|
|
uint8_t *puStack_18;
|
|
void *local_14;
|
|
Manager *manager;
|
|
|
|
local_30._unk = GHIDRA_INT((numberText + 0xf));
|
|
puStack_18 = &LAB_00b07173;
|
|
local_1c = ExceptionList;
|
|
local_30._alpha = (float)(__security_cookie ^ GHIDRA_UINT((numberText + 0xc)));
|
|
ExceptionList = &local_1c;
|
|
local_a4._green = (float)memberIndex;
|
|
local_34 = KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
local_30._red = 0.0;
|
|
local_30._green = 0.0;
|
|
local_14 = (void *)0x0;
|
|
local_90 = this;
|
|
(GHIDRA_CAST<msvc::shared_ptr *>((&local_30)))->msvc::shared_ptr::assign(&g_multiplayerLobbyPtr);
|
|
local_34 = KAGE::Network::Multiplayer::Lobby::vftable;
|
|
local_14 = (void *)0x1;
|
|
if (GHIDRA_CAST<int *>(local_30._red) == GHIDRA_CAST<int *>(0x0)) {
|
|
LAB_008ec04c:
|
|
local_74 = '\x01';
|
|
}
|
|
else {
|
|
cVar2 = (**(code **)(*GHIDRA_CAST<int *>(local_30._red) + 0xc))();
|
|
local_74 = '\0';
|
|
if (cVar2 == '\0') goto LAB_008ec04c;
|
|
}
|
|
local_34 = KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
local_14 = (void *)0x2;
|
|
if (((GHIDRA_CAST<int *>(local_30._green) != GHIDRA_CAST<int *>(0x0)) &&
|
|
(cVar2 = (**(code **)(*GHIDRA_CAST<int *>(local_30._green) + 0xc))(), cVar2 != '\0')) &&
|
|
(g_lobbyReleaseFn != (void *)0x0)) {
|
|
(*g_lobbyReleaseFn)();
|
|
}
|
|
local_14 = (void *)0xffffffff;
|
|
if (local_74 != '\0') {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
isKeyboard = g_menuControllerIndex == 0;
|
|
slotX = (g_menuManager->_ViewPosition).x + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8))));
|
|
slotY = (g_menuManager->_ViewPosition).y + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc))));
|
|
local_8c = g_vectorZero.x;
|
|
local_a4._unk = GHIDRA_INT(g_vectorZero.y);
|
|
memberSprite = lobby_member_sprite_get(this,memberIndex);
|
|
if (memberSprite == GHIDRA_CAST<ANM2 *>(0x0)) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
local_a4._blue = (float)memberSprite;
|
|
user = lobby_get_member_info(this,GHIDRA_INT(local_a4._green));
|
|
savedUser = user;
|
|
playerNumber = FUN_008edde0();
|
|
playerNumber = playerNumber + 1;
|
|
cursorPlayerNumber = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_90[8])) + 0x6c))));
|
|
local_74 = playerNumber == cursorPlayerNumber;
|
|
if (user == GHIDRA_CAST<int *>(0x0)) {
|
|
LAB_008ec144:
|
|
isLocalMember = '\0';
|
|
}
|
|
else {
|
|
cVar2 = (**(code **)(*user + 0x14))();
|
|
isLocalMember = '\x01';
|
|
if (cVar2 == '\0') goto LAB_008ec144;
|
|
}
|
|
local_54._blue = (float)KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
local_54._alpha = 0.0;
|
|
local_54._unk = 0;
|
|
local_14 = (void *)0x3;
|
|
(GHIDRA_CAST<msvc::shared_ptr *>((&local_54._alpha)))->msvc::shared_ptr::assign(&g_multiplayerLobbyPtr);
|
|
local_54._blue = (float)KAGE::Network::Multiplayer::Lobby::vftable;
|
|
local_14 = (void *)0x4;
|
|
if (GHIDRA_CAST<int *>(local_54._alpha) == GHIDRA_CAST<int *>(0x0)) {
|
|
local_30._green = 0.0;
|
|
}
|
|
else {
|
|
iVar3 = (**(code **)(*GHIDRA_CAST<int *>(local_54._alpha) + 0x20))();
|
|
local_30._green = *GHIDRA_CAST<float *>((iVar3 + 4));
|
|
local_b0 = KAGE::System::UserProfileBase::vftable;
|
|
}
|
|
local_30._red = (float)KAGE::System::UserProfile::vftable;
|
|
local_14 = (void *)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),5);
|
|
local_76 = (GHIDRA_CAST<KAGE::System::UserProfile *>((&local_30)))->KAGE::System::UserProfile::is_local_user();
|
|
local_30._red = (float)KAGE::System::UserProfileBase::vftable;
|
|
local_54._blue = (float)KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
local_14 = (void *)0x6;
|
|
if (((GHIDRA_CAST<int *>(local_54._unk) != GHIDRA_CAST<int *>(0x0)) &&
|
|
(cVar2 = (**(code **)(*GHIDRA_CAST<int *>(local_54._unk) + 0xc))(), cVar2 != '\0')) &&
|
|
(g_lobbyReleaseFn != (void *)0x0)) {
|
|
(*g_lobbyReleaseFn)();
|
|
}
|
|
local_54._blue = (float)KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
local_54._alpha = 0.0;
|
|
local_54._unk = 0;
|
|
local_14 = (void *)0x7;
|
|
(GHIDRA_CAST<msvc::shared_ptr *>((&local_54._alpha)))->msvc::shared_ptr::assign(&g_multiplayerLobbyPtr);
|
|
local_54._blue = (float)KAGE::Network::Multiplayer::Lobby::vftable;
|
|
local_14 = (void *)0x8;
|
|
if (GHIDRA_CAST<int *>(local_54._alpha) == GHIDRA_CAST<int *>(0x0)) {
|
|
local_ac = GHIDRA_CAST<Font *>(0x0);
|
|
}
|
|
else {
|
|
local_ac = GHIDRA_CAST<Font *>((**(code **)(*GHIDRA_CAST<int *>(local_54._alpha) + 0x1c))());
|
|
}
|
|
local_54._blue = (float)KAGE::Network::Multiplayer::ConstLobby::vftable;
|
|
local_14 = (void *)0x9;
|
|
if (((GHIDRA_CAST<int *>(local_54._unk) != GHIDRA_CAST<int *>(0x0)) &&
|
|
(cVar2 = (**(code **)(*GHIDRA_CAST<int *>(local_54._unk) + 0xc))(), cVar2 != '\0')) &&
|
|
(g_lobbyReleaseFn != (void *)0x0)) {
|
|
(*g_lobbyReleaseFn)();
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xff;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0xffffff;
|
|
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((g_manager->_lobbySettings))) + 0x4))));
|
|
if ((((iVar3 == 4) || (iVar3 == 5)) || (playerNumber != cursorPlayerNumber)) ||
|
|
(isSwapAllowed = '\x01', isLocalMember == '\0')) {
|
|
isSwapAllowed = '\0';
|
|
}
|
|
if ((user == GHIDRA_CAST<int *>(0x0)) || (cVar2 = (**(code **)(*user + 0x14))(), cVar2 == '\0')) {
|
|
right = int_to_string(GHIDRA_CAST<std_string *>(numberText),playerNumber);
|
|
builtin_strncpy(local_68,"Player",7);
|
|
local_5c = 0xf;
|
|
local_60 = 0xe;
|
|
local_70 = (uint8_t [8])0x6e6f697469736f50;
|
|
local_14 = (void *)0xb;
|
|
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&local_58))))->msvc::string::concat_move(GHIDRA_INT(local_30._green),local_70,right);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
|
|
pppppppbVar4 = GHIDRA_CAST<uint8_t *******>(&local_58);
|
|
if (&DAT_0000000f < GHIDRA_UINT(local_54._unk)) {
|
|
pppppppbVar4 = local_58;
|
|
}
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_90)) + 0x44)))) == 0) {
|
|
nullFrame = GHIDRA_CAST<float *>(0x0);
|
|
}
|
|
else {
|
|
nullFrame = AnimationState::GetNullFrame
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_90)) + 0x40)))),GHIDRA_CAST<uint8_t *>(pppppppbVar4));
|
|
}
|
|
memberSprite = GHIDRA_CAST<ANM2 *>(local_a4._blue);
|
|
local_8c = *nullFrame;
|
|
local_a4._unk = GHIDRA_INT(nullFrame[1]);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xb;
|
|
if (&DAT_0000000f < GHIDRA_UINT(local_54._unk)) {
|
|
size = GHIDRA_CAST<int *>((local_54._unk + 1));
|
|
pppppppbVar4 = local_58;
|
|
if (GHIDRA_CAST<int *>(0xfff) < size) {
|
|
pppppppbVar4 = GHIDRA_CAST<uint8_t *******>(local_58[-1]);
|
|
size = GHIDRA_CAST<int *>((local_54._unk + 0x24));
|
|
if (GHIDRA_CAST<uint8_t *>(0x1f) < GHIDRA_CAST<uint8_t *>((GHIDRA_INT(local_58) + (-4 - GHIDRA_INT(pppppppbVar4))))) goto LAB_008ec408;
|
|
}
|
|
operator_delete(pppppppbVar4,GHIDRA_UINT(size));
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 10;
|
|
if (0xf < local_5c) {
|
|
uVar8 = local_5c + 1;
|
|
pvVar7 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)local_70)) + 0x0)));
|
|
if (0xfff < uVar8) {
|
|
pvVar7 = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_70)) + 0x0))) + -4);
|
|
uVar8 = local_5c + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_70)) + 0x0))) + (-4 - GHIDRA_INT(pvVar7))))) goto LAB_008ec408;
|
|
}
|
|
operator_delete(pvVar7,uVar8);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xff;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0xffffff;
|
|
if (0xf < GHIDRA_UINT(local_30._green)) {
|
|
uVar8 = GHIDRA_INT(local_30._green) + 1;
|
|
pvVar7 = numberText[0];
|
|
if (0xfff < uVar8) {
|
|
pvVar7 = *(void **)(GHIDRA_INT(numberText[0]) + -4);
|
|
uVar8 = GHIDRA_INT(local_30._green) + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(numberText[0]) + (-4 - GHIDRA_INT(pvVar7))))) {
|
|
LAB_008ec408:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar7,uVar8);
|
|
}
|
|
local_30._green = slotY + (float)local_a4._unk;
|
|
local_30._red = slotX + local_8c;
|
|
in_stack_ffffff14 = GHIDRA_CAST<KColor *>(0x8ec44e);
|
|
ANM2::Render(memberSprite,GHIDRA_CAST<Vector *>(&local_30),&g_vectorZero,&g_vectorZero);
|
|
}
|
|
if ((memberSprite->_animState)._animData == (void *)0x0) {
|
|
slotX = slotX + local_8c;
|
|
slotY = slotY + (float)local_a4._unk;
|
|
local_a4._alpha = slotX;
|
|
local_8c = slotY;
|
|
}
|
|
else {
|
|
nullFrame = AnimationState::GetNullFrame(&memberSprite->_animState,GHIDRA_CAST<uint8_t *>("Player_Info"));
|
|
slotX = slotX + local_8c;
|
|
slotY = slotY + (float)local_a4._unk;
|
|
local_a4._alpha = slotX;
|
|
local_8c = slotY;
|
|
if (nullFrame != GHIDRA_CAST<float *>(0x0)) {
|
|
local_a4._alpha = slotX + *nullFrame;
|
|
local_8c = slotY + nullFrame[1];
|
|
}
|
|
}
|
|
local_a4._unk = GHIDRA_INT(slotX);
|
|
local_30._green = slotY;
|
|
if (GHIDRA_UINT(local_a4._green) < local_ac) {
|
|
FUN_0040a860();
|
|
if (((user == GHIDRA_CAST<int *>(0x0)) || (isLocalMember == '\0')) ||
|
|
((*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\0' || (isKeyboard == '\0')))) {
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Ready_Button"));
|
|
pLVar5->_visible = 0;
|
|
if ((user != GHIDRA_CAST<int *>(0x0)) && (isLocalMember != '\0')) goto LAB_008ec54e;
|
|
LAB_008ec56c:
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Unready_Button"));
|
|
pLVar5->_visible = 0;
|
|
if ((user != GHIDRA_CAST<int *>(0x0)) || (isVisible = 1, (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_90[6])) + 0x20))) != '\0'))
|
|
goto LAB_008ec590;
|
|
}
|
|
else {
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Ready_Button"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec54e:
|
|
if ((*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\x01') || (isKeyboard == '\0')) goto LAB_008ec56c;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Unready_Button"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec590:
|
|
isVisible = 0;
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Invite_Player"));
|
|
pLVar5->_visible = isVisible;
|
|
FUN_0040a860();
|
|
if (((user == GHIDRA_CAST<int *>(0x0)) && ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_90[6])) + 0x20))) == '\0')) && (isKeyboard != '\0')) {
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Invite_Player_Button"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec5da:
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Swap_Button"));
|
|
pLVar5->_visible = 0;
|
|
if ((user != GHIDRA_CAST<int *>(0x0)) && (isLocalMember != '\0')) goto LAB_008ec5f4;
|
|
LAB_008ec667:
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_ArrowLeft"));
|
|
pLVar5->_visible = 0;
|
|
if ((user != GHIDRA_CAST<int *>(0x0)) && (isLocalMember != '\0')) goto LAB_008ec681;
|
|
LAB_008ec69f:
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_ArrowRight"));
|
|
pLVar5->_visible = 0;
|
|
if (user != GHIDRA_CAST<int *>(0x0)) goto LAB_008ec6b3;
|
|
LAB_008ec6e0:
|
|
isVisible = 0;
|
|
}
|
|
else {
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Invite_Player_Button"));
|
|
pLVar5->_visible = 0;
|
|
if (((((user == GHIDRA_CAST<int *>(0x0)) || (playerNumber != cursorPlayerNumber)) ||
|
|
((isLocalMember == '\0' ||
|
|
((*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\0' || ((char)user[3] != '\0')))))) ||
|
|
(cVar2 = FUN_008ed2e0(), cVar2 == '\0')) ||
|
|
((isKeyboard == '\0' || (isSwapAllowed == '\0')))) goto LAB_008ec5da;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Swap_Button"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec5f4:
|
|
if ((*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\0') || (isSwapAllowed == '\0')) goto LAB_008ec667;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_ArrowLeft"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec681:
|
|
if ((*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\0') || (isSwapAllowed == '\0')) goto LAB_008ec69f;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_ArrowRight"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec6b3:
|
|
if ((((playerNumber != cursorPlayerNumber) || (isLocalMember == '\0')) ||
|
|
(*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\0')) ||
|
|
((((char)user[3] != '\0' || (cVar2 = FUN_008ed2e0(), cVar2 == '\0')) ||
|
|
(isVisible = 1, isSwapAllowed == '\0')))) goto LAB_008ec6e0;
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,&DAT_00b6d168);
|
|
pLVar5->_visible = isVisible;
|
|
isVisible = user != GHIDRA_CAST<int *>(0x0);
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Number"));
|
|
pLVar5->_visible = isVisible;
|
|
if (user == GHIDRA_CAST<int *>(0x0)) {
|
|
FUN_0040a860();
|
|
LAB_008ec78b:
|
|
fVar9 = slotY;
|
|
fVar10 = slotX;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Character"));
|
|
pLVar5->_visible = 0;
|
|
if (user != GHIDRA_CAST<int *>(0x0)) goto LAB_008ec79f;
|
|
LAB_008ec7cb:
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Ready"));
|
|
pLVar5->_visible = 0;
|
|
if (user != GHIDRA_CAST<int *>(0x0)) goto LAB_008ec7df;
|
|
LAB_008ec803:
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Unready"));
|
|
pLVar5->_visible = 0;
|
|
if ((user != GHIDRA_CAST<int *>(0x0)) &&
|
|
((slotY = fVar9, slotX = fVar10, isLocalMember != '\0' ||
|
|
(playerNumber != cursorPlayerNumber)))) goto LAB_008ec839;
|
|
LAB_008ec851:
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_InProgress"));
|
|
pLVar5->_visible = 0;
|
|
if (user != GHIDRA_CAST<int *>(0x0)) goto LAB_008ec865;
|
|
LAB_008ec879:
|
|
isVisible = 0;
|
|
}
|
|
else {
|
|
online_lobby_find_member_index(user);
|
|
FUN_0040a860();
|
|
if (isLocalMember == '\0') {
|
|
slotX = (float)local_a4._unk;
|
|
slotY = local_30._green;
|
|
if (playerNumber == cursorPlayerNumber) goto LAB_008ec78b;
|
|
}
|
|
fVar10 = (float)local_a4._unk;
|
|
fVar9 = local_30._green;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Character"));
|
|
pLVar5->_visible = 1;
|
|
slotY = fVar9;
|
|
slotX = fVar10;
|
|
LAB_008ec79f:
|
|
if (((isLocalMember == '\0') &&
|
|
((playerNumber == cursorPlayerNumber || (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\x01')))) ||
|
|
((char)user[3] != '\0')) goto LAB_008ec7cb;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Ready"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec7df:
|
|
if (((isLocalMember == '\0') || (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\x01')) ||
|
|
((char)user[3] != '\0')) goto LAB_008ec803;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Unready"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec839:
|
|
if ((char)user[3] == '\0') goto LAB_008ec851;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_InProgress"));
|
|
pLVar5->_visible = 1;
|
|
LAB_008ec865:
|
|
if ((isLocalMember == '\0') && (playerNumber == cursorPlayerNumber)) goto LAB_008ec879;
|
|
isVisible = 1;
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Completion"));
|
|
pLVar5->_visible = isVisible;
|
|
FUN_0040a860();
|
|
}
|
|
else {
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Ready_Button"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Unready_Button"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Invite_Player"));
|
|
pLVar5->_visible = 1;
|
|
FUN_0040a860();
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Invite_Player_Button"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Swap_Button"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Number"));
|
|
pLVar5->_visible = 0;
|
|
FUN_0040a860();
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Character"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Ready"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Unready"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_InProgress"));
|
|
pLVar5->_visible = 0;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Completion"));
|
|
pLVar5->_visible = 0;
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Next_Right"));
|
|
pLVar5->_visible = local_74;
|
|
if ((playerNumber != cursorPlayerNumber) || (isVisible = 1, isKeyboard == '\0')) {
|
|
isVisible = 0;
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Right_Next_Button"));
|
|
pLVar5->_visible = isVisible;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Next_Left"));
|
|
pLVar5->_visible = local_74;
|
|
if ((playerNumber != cursorPlayerNumber) || (isVisible = 1, isKeyboard == '\0')) {
|
|
isVisible = 0;
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Left_Next_Button"));
|
|
pLVar5->_visible = isVisible;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Options"));
|
|
pLVar5->_visible = local_74;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Options_Cursor"));
|
|
pLVar5->_visible = local_74;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Options"));
|
|
if (pLVar5 == GHIDRA_CAST<LayerState *>(0x0)) {
|
|
in_stack_ffffff14 = GHIDRA_CAST<KColor *>(0x8eca3e);
|
|
KAGE_LogMessage(4,GHIDRA_CAST<uint8_t *>("[warn] no layer named %s\n"));
|
|
}
|
|
else {
|
|
ANM2::SetLayerFrame(memberSprite,*GHIDRA_CAST<int *>(pLVar5->_layerData),GHIDRA_UINT((local_76 == 0)));
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Player_Options_Cursor"));
|
|
if (pLVar5 == GHIDRA_CAST<LayerState *>(0x0)) {
|
|
pos_01 = GHIDRA_CAST<KColor *>(&DAT_00000004);
|
|
in_stack_ffffff14 = GHIDRA_CAST<KColor *>(0x8eca78);
|
|
KAGE_LogMessage(4,GHIDRA_CAST<uint8_t *>("[warn] no layer named %s\n"));
|
|
}
|
|
else {
|
|
pos_01 = GHIDRA_CAST<KColor *>(0x8eca91);
|
|
ANM2::SetLayerFrame(memberSprite,*GHIDRA_CAST<int *>(pLVar5->_layerData),*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_90[8])) + 0x70)))));
|
|
}
|
|
if ((isKeyboard == '\0') && (playerNumber == cursorPlayerNumber)) {
|
|
if ((memberSprite->_animState)._animData == (void *)0x0) {
|
|
nullFrame = GHIDRA_CAST<float *>(0x0);
|
|
}
|
|
else {
|
|
nullFrame = AnimationState::GetNullFrame
|
|
(&memberSprite->_animState,GHIDRA_CAST<uint8_t *>("PlayerNextRightButton"));
|
|
}
|
|
local_30._green = slotY + nullFrame[1];
|
|
local_30._red = slotX + *nullFrame;
|
|
position_00.y = slotY + nullFrame[1];
|
|
position_00.x = slotX + *nullFrame;
|
|
Manager::render_button_sprite(0xd,position_00);
|
|
if ((memberSprite->_animState)._animData == (void *)0x0) {
|
|
nullFrame = GHIDRA_CAST<float *>(0x0);
|
|
}
|
|
else {
|
|
nullFrame = AnimationState::GetNullFrame
|
|
(&memberSprite->_animState,GHIDRA_CAST<uint8_t *>("PlayerNextLeftButton"));
|
|
}
|
|
local_30._green = slotY + nullFrame[1];
|
|
local_30._red = slotX + *nullFrame;
|
|
pos_01 = GHIDRA_CAST<KColor *>(0xc);
|
|
in_stack_ffffff14 = GHIDRA_CAST<KColor *>(0x8ecb29);
|
|
position_01.y = local_30._green;
|
|
position_01.x = local_30._red;
|
|
Manager::render_button_sprite(0xc,position_01);
|
|
}
|
|
if (user == GHIDRA_CAST<int *>(0x0)) {
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Connection_Bar"));
|
|
isKeyboardInput = g_menuControllerIndex == 0;
|
|
pLVar5->_visible = 0;
|
|
if (isKeyboardInput) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_90[6])) + 0x20))) != '\0') {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if (local_ac <= GHIDRA_UINT(local_a4._green)) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
nullFrame = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(memberSprite))))->Sprite::GetNullFrame(GHIDRA_CAST<uint8_t *>("InviteButton"));
|
|
fVar10 = local_8c + nullFrame[1];
|
|
fVar9 = local_a4._alpha + *nullFrame;
|
|
local_30._green = fVar10;
|
|
local_30._red = fVar9;
|
|
(GHIDRA_CAST<Color *>((aCStackY_173c + 0x81)))->Color::Color(1.0,1.0,1.0,1.0);
|
|
iVar3 = 0x18;
|
|
goto LAB_008ed064;
|
|
}
|
|
cVar2 = (**(code **)(*user + 0x14))();
|
|
pGVar1 = local_90;
|
|
if (cVar2 != '\0') {
|
|
if ((char)user[2] == '\0') {
|
|
pLVar5 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_90)) + 0x10)))),GHIDRA_CAST<uint8_t *>("Player_Portrait_Random"));
|
|
pLVar5->_visible = 1;
|
|
pLVar5 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((pGVar1)) + 0x10)))),GHIDRA_CAST<uint8_t *>("Player_Portrait"));
|
|
pLVar5->_visible = 0;
|
|
}
|
|
else {
|
|
FUN_00949b90();
|
|
local_30._green = (float)FUN_0069bd10();
|
|
if (local_30._green == 0.0) goto LAB_008ecbd8;
|
|
portraitSprite = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_90)) + 0x10)));
|
|
pLVar5 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(portraitSprite),GHIDRA_CAST<uint8_t *>("Player_Portrait"));
|
|
pLVar5->_visible = 1;
|
|
pLVar5 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(portraitSprite),GHIDRA_CAST<uint8_t *>("Player_Portrait_Random"));
|
|
pLVar5->_visible = 0;
|
|
Sprite::ReplaceSpritesheet
|
|
(GHIDRA_CAST<Sprite *>(portraitSprite),0x2a,GHIDRA_CAST<std_string *>((GHIDRA_INT(local_30._green) + 0x4c)));
|
|
ANM2::LoadGraphics(GHIDRA_CAST<ANM2 *>(portraitSprite),unk);
|
|
}
|
|
memberSprite = GHIDRA_CAST<ANM2 *>(local_a4._blue);
|
|
}
|
|
LAB_008ecbd8:
|
|
iVar3 = user[1];
|
|
local_ac = &g_manager->_font1_TeamMeatEx10;
|
|
if (iVar3 == 0) {
|
|
local_30._red = 0.0;
|
|
fVar9 = local_30._red;
|
|
local_30._green = 0.0;
|
|
fVar10 = local_30._green;
|
|
local_30._green = 0.0;
|
|
local_30._red = 0.0;
|
|
fVar6 = local_30._green;
|
|
fVar11 = local_30._red;
|
|
local_30._red = fVar9;
|
|
local_30._green = fVar10;
|
|
}
|
|
else {
|
|
fVar6 = *GHIDRA_CAST<float *>((iVar3 + 0xc));
|
|
fVar11 = *GHIDRA_CAST<float *>((iVar3 + 8));
|
|
}
|
|
local_30._green = (float)user_profile_format_display_name(CONCAT44(fVar6,fVar11),local_ac,0x46);
|
|
if ((memberSprite->_animState)._animData == (void *)0x0) {
|
|
nullFrame = GHIDRA_CAST<float *>(0x0);
|
|
}
|
|
else {
|
|
nullFrame = AnimationState::GetNullFrame(&memberSprite->_animState,GHIDRA_CAST<uint8_t *>("PlayerName"));
|
|
}
|
|
local_a4._red = slotX + *nullFrame;
|
|
local_a4._green = slotY + nullFrame[1];
|
|
if ((playerNumber == cursorPlayerNumber) && (isLocalMember == '\0')) {
|
|
local_a4._green = local_a4._green + 10.0;
|
|
}
|
|
FUN_00a1a580();
|
|
local_14 = (void *)0xd;
|
|
(GHIDRA_CAST<KColor *>((&local_54)))->KColor::SetFromARGB(0xff362f2d);
|
|
pos_01 = &local_a4;
|
|
in_stack_ffffff10 = 0x8eccac;
|
|
in_stack_ffffff14 = GHIDRA_CAST<KColor *>(local_30._green);
|
|
Font::DrawStringScaled(local_ac,GHIDRA_CAST<uint8_t *>(local_30._green),GHIDRA_CAST<Vector *>(pos_01),color_02,fontSettings);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xff;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0xffffff;
|
|
iVar3 = (g_manager->_optionsConfig)._eosCrossplay;
|
|
if ((iVar3 == 2) || (iVar3 == 3)) {
|
|
cVar2 = (**(code **)(*user + 0x14))();
|
|
fVar10 = g_vectorOne.y;
|
|
fVar9 = g_vectorOne.x;
|
|
if (cVar2 == '\0') {
|
|
fVar6 = 8.0;
|
|
fVar11 = 18.0;
|
|
}
|
|
else {
|
|
fVar6 = 58.0;
|
|
fVar11 = 30.0;
|
|
}
|
|
local_30._red = local_a4._alpha + fVar6;
|
|
local_30._green = local_8c + fVar11;
|
|
in_stack_ffffff10 = (**(code **)(*savedUser + 0xc))();
|
|
in_stack_ffffff0c = 0x8ecd41;
|
|
position.y = local_30._green;
|
|
position.x = local_30._red;
|
|
in_stack_ffffff14 = GHIDRA_CAST<KColor *>(local_30._red);
|
|
pos_01 = GHIDRA_CAST<KColor *>(local_30._green);
|
|
render_online_icon(in_stack_ffffff10,position,fVar9,fVar10);
|
|
memberSprite = GHIDRA_CAST<ANM2 *>(local_a4._blue);
|
|
user = savedUser;
|
|
}
|
|
cVar2 = (**(code **)(*user + 0x14))();
|
|
if (cVar2 == '\0') {
|
|
FUN_00a29fd0();
|
|
local_14 = (void *)0xe;
|
|
if ((GHIDRA_CAST<KColor *>(local_30._red) == GHIDRA_CAST<KColor *>(0x0)) ||
|
|
(0x77 < *GHIDRA_CAST<uint16_t *>(&(GHIDRA_CAST<KColor *>((GHIDRA_INT(local_30._red) + 0x14)))->_red))) {
|
|
iVar3 = 0;
|
|
}
|
|
else {
|
|
iVar3 = 2;
|
|
if (0x3c < *GHIDRA_CAST<uint16_t *>(&(GHIDRA_CAST<KColor *>((GHIDRA_INT(local_30._red) + 0x14)))->_red)) {
|
|
iVar3 = 1;
|
|
}
|
|
}
|
|
local_76 = playerNumber != cursorPlayerNumber;
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Connection_Bar"));
|
|
pLVar5->_visible = local_76;
|
|
ANM2::SetLayerFrame(memberSprite,0x21,iVar3);
|
|
FUN_008eee70();
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
pLVar5 = ANM2::GetLayer(memberSprite,GHIDRA_CAST<uint8_t *>("Connection_Bar"));
|
|
pLVar5->_visible = 0;
|
|
if (((char)user[2] == '\n') && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) == '\0')) {
|
|
sprintf_s(GHIDRA_CAST<uint8_t *>(&local_54),0x14,GHIDRA_CAST<uint8_t *>("Tokens: %d"));
|
|
nullFrame = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(memberSprite))))->Sprite::GetNullFrame(GHIDRA_CAST<uint8_t *>("EdenTokenCounter"));
|
|
manager = g_manager;
|
|
local_30._green = slotY + nullFrame[1];
|
|
fVar9 = slotX + *nullFrame;
|
|
iVar3 = Font::get_string_width_n(&g_manager->_font1_TeamMeatEx10,GHIDRA_CAST<uint8_t *>(&local_54),-1);
|
|
local_30._red = fVar9 - (float)((double)iVar3 + __uint_to_double_fixup[-(iVar3 >> 0x1f)]) * 0.5;
|
|
FontSettings::constructor(fontSettings);
|
|
local_14 = (void *)0xf;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_70 + 4)))))->KColor::SetFromARGB(0xff362f2d);
|
|
pos_01 = &local_30;
|
|
in_stack_ffffff14 = &local_54;
|
|
in_stack_ffffff10 = 0x8ece9e;
|
|
Font::DrawStringScaled
|
|
(&manager->_font1_TeamMeatEx10,GHIDRA_CAST<uint8_t *>(in_stack_ffffff14),GHIDRA_CAST<Vector *>(pos_01),color_01,
|
|
settings);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xff;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0xffffff;
|
|
local_b8 = 0;
|
|
local_b4 = 0;
|
|
memberSprite = GHIDRA_CAST<ANM2 *>(local_a4._blue);
|
|
user = savedUser;
|
|
}
|
|
if (g_menuControllerIndex == 0) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) == '\0') {
|
|
nullLayerName = "ReadyButton";
|
|
}
|
|
else {
|
|
nullLayerName = "UnreadyButton";
|
|
}
|
|
nullFrame = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(memberSprite))))->Sprite::GetNullFrame(GHIDRA_CAST<uint8_t *>(nullLayerName));
|
|
fVar10 = local_a4._alpha + *nullFrame;
|
|
fVar9 = local_8c + nullFrame[1];
|
|
local_30._green = fVar9;
|
|
local_30._red = fVar10;
|
|
(GHIDRA_CAST<Color *>((aCStackY_173c + 0x81)))->Color::Color(1.0,1.0,1.0,1.0);
|
|
color._colorize[3] = (float)in_stack_ffffff0c;
|
|
color._tint[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x0)));
|
|
color._tint[1] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x4)));
|
|
color._tint[2] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x8)));
|
|
color._tint[3] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0xc)));
|
|
color._colorize[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x10)));
|
|
color._colorize[1] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x14)));
|
|
color._colorize[2] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x18)));
|
|
color._offset[0] = (float)in_stack_ffffff10;
|
|
color._offset[1] = (float)in_stack_ffffff14;
|
|
color._offset[2] = (float)pos_01;
|
|
pos.y = fVar9;
|
|
pos.x = fVar10;
|
|
render_input_button_icon(g_menuControllerIndex,0x1c,0,1,color,pos);
|
|
if (isSwapAllowed == '\0') {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 10)) != '\0') {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if (playerNumber != cursorPlayerNumber) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if ((*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(user) + 9)) == '\0') && (cVar2 = FUN_008ed2e0(), cVar2 == '\0')) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
nullFrame = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(memberSprite))))->Sprite::GetNullFrame(GHIDRA_CAST<uint8_t *>("SwapButton"));
|
|
fVar10 = local_8c + nullFrame[1];
|
|
fVar9 = local_a4._alpha + *nullFrame;
|
|
local_30._green = fVar10;
|
|
local_30._red = fVar9;
|
|
(GHIDRA_CAST<Color *>((aCStackY_173c + 0x81)))->Color::Color(1.0,1.0,1.0,1.0);
|
|
iVar3 = 0x19;
|
|
LAB_008ed064:
|
|
color_00._colorize[3] = (float)in_stack_ffffff0c;
|
|
color_00._tint[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x0)));
|
|
color_00._tint[1] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x4)));
|
|
color_00._tint[2] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x8)));
|
|
color_00._tint[3] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0xc)));
|
|
color_00._colorize[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x10)));
|
|
color_00._colorize[1] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x14)));
|
|
color_00._colorize[2] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)in_stack_fffffef0)) + 0x18)));
|
|
color_00._offset[0] = (float)in_stack_ffffff10;
|
|
color_00._offset[1] = (float)in_stack_ffffff14;
|
|
color_00._offset[2] = (float)pos_01;
|
|
pos_00.y = fVar10;
|
|
pos_00.x = fVar9;
|
|
render_input_button_icon(g_menuControllerIndex,iVar3,0,1,color_00,pos_00);
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 00998880
|
|
void GameOver::Render()
|
|
{
|
|
GameOver *smallFont = this;
|
|
uint8_t bVar1;
|
|
Manager *pMVar2;
|
|
char cVar3;
|
|
uint32_t uVar4;
|
|
void *pvVar5;
|
|
LayerState *pLVar6;
|
|
int iVar7;
|
|
Entity_Player *netplayPlayer;
|
|
ItemConfig_Item *itemConfig;
|
|
float extraout_EAX;
|
|
float *nullFrame;
|
|
char *text;
|
|
Font *smallFont;
|
|
uint8_t *translatedText;
|
|
uint8_t *******pppppppbVar8;
|
|
size_t copyLen;
|
|
AnimationLayer *animLayer;
|
|
int iVar9;
|
|
uint8_t *pbVar10;
|
|
KColor *color;
|
|
KColor *color_00;
|
|
std_string *ptr;
|
|
int layerEntry;
|
|
uint32_t uVar11;
|
|
ANM2 *pAVar12;
|
|
char *memberEntry;
|
|
uint8_t *deedName;
|
|
KColor tmpColor;
|
|
Vector drawPos;
|
|
float local_124;
|
|
Vector local_120;
|
|
Vector screenCenter;
|
|
float local_110;
|
|
float local_10c;
|
|
std_string *local_108;
|
|
uint32_t local_104;
|
|
float local_100;
|
|
Entity_Player *local_fc;
|
|
uint32_t local_f8;
|
|
std_string *local_f4;
|
|
char local_f0 [12];
|
|
uint32_t local_e4;
|
|
uint32_t local_e0;
|
|
uint8_t *******deedText [2];
|
|
uint8_t seedHalf [12];
|
|
uint32_t uStack_c8;
|
|
ColorMod tmpColorMod;
|
|
uint8_t quad [48];
|
|
uint8_t nullName [68];
|
|
uint32_t local_24;
|
|
uint8_t *puStack_20;
|
|
void *local_1c;
|
|
uint8_t *puStack_18;
|
|
uint32_t local_14;
|
|
void *collectibleConfigs;
|
|
Game *game;
|
|
|
|
puStack_20 = nullName + 100;
|
|
local_14 = 0xffffffff;
|
|
puStack_18 = &LAB_00b0d7dd;
|
|
local_1c = ExceptionList;
|
|
uVar4 = __security_cookie ^ GHIDRA_UINT((nullName + 0x58));
|
|
ExceptionList = &local_1c;
|
|
local_124 = 0.0;
|
|
if (*GHIDRA_CAST<int *>(smallFont) != 0) {
|
|
tmpColor._red = 0.0;
|
|
tmpColor._green = 0.0;
|
|
tmpColor._blue = 0.0;
|
|
tmpColor._alpha = 0.5019608;
|
|
tmpColor._unk = 0;
|
|
local_24 = uVar4;
|
|
pvVar5 = render_quad_set_uniform_color(quad,0.0,0.0,g_screenWidth,g_screenHeight,&tmpColor);
|
|
render_color_shader_pass(pvVar5);
|
|
screenCenter.x = g_screenWidth * 0.5 + 16.0;
|
|
screenCenter.y = g_screenHeight * 0.5 + 16.0;
|
|
if (g_manager->_netplayManager != *GHIDRA_CAST<int *>((g_manager + 1))) {
|
|
screenCenter.x = screenCenter.x - 112.0;
|
|
}
|
|
pLVar6 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x8)))),&DAT_00000006);
|
|
pLVar6->_visible = 0;
|
|
local_fc = *GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((g_game->_playerManager))) + 0x7c))));
|
|
if (local_fc == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
|
local_fc = Game::GetPlayer(g_game,0);
|
|
}
|
|
if (local_fc->_playerType == 0x28) {
|
|
local_fc = GHIDRA_CAST<Entity_Player *>(local_fc->_twinPlayer);
|
|
}
|
|
if ((g_manager->_netplayManager != *GHIDRA_CAST<int *>((g_manager + 1))) &&
|
|
(iVar7 = FUN_0090b070(uVar4), iVar7 != 0)) {
|
|
FUN_0090b070();
|
|
netplayPlayer = GHIDRA_CAST<Entity_Player *>(FUN_004253d0());
|
|
if (netplayPlayer != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
|
local_fc = netplayPlayer;
|
|
}
|
|
}
|
|
local_108 = GHIDRA_CAST<std_string *>(local_fc->_playerType);
|
|
if (GHIDRA_INT(local_108) < 0x29) {
|
|
ANM2::Render(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x8)))),&screenCenter,&g_vectorZero,&g_vectorZero);
|
|
}
|
|
else {
|
|
pLVar6 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x8)))),&DAT_00000004);
|
|
pLVar6->_visible = 0;
|
|
ANM2::Render(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x8)))),&screenCenter,&g_vectorZero,&g_vectorZero);
|
|
ModManager::RenderCustomGameOver(GHIDRA_INT(local_108),&screenCenter);
|
|
}
|
|
local_10c = g_vectorZero.x;
|
|
local_110 = g_vectorZero.y;
|
|
pLVar6 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x8)))),&DAT_00000006);
|
|
local_104 = 0x10;
|
|
pLVar6->_visible = 1;
|
|
pvVar5 = (local_fc->_history)._historyItems._begin;
|
|
if (pvVar5 != (local_fc->_history)._historyItems._end) {
|
|
do {
|
|
if (local_104 == 0) break;
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(pvVar5) + 4)) == '\0') {
|
|
local_100 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar5) + 8));
|
|
}
|
|
else {
|
|
local_100 = 0.0;
|
|
}
|
|
if (g_game == GHIDRA_CAST<Game *>(0x0)) {
|
|
if (-1 < GHIDRA_INT(local_100)) goto LAB_00998b3f;
|
|
}
|
|
else {
|
|
if (GHIDRA_INT(local_100) < 0) {
|
|
if ((GHIDRA_INT(local_100) < 0) &&
|
|
(local_108 = (g_game->_proceduralItemManager)._proceduralItems._begin,
|
|
GHIDRA_INT(~GHIDRA_UINT(local_100)) <
|
|
GHIDRA_INT((g_game->_proceduralItemManager)._proceduralItems._end) - GHIDRA_INT(local_108) >> 2)) {
|
|
itemConfig = (ItemConfig_Item *)
|
|
**GHIDRA_CAST<uint32_t **>((GHIDRA_CAST<char *>(local_108) + ~GHIDRA_UINT(local_100) * 4));
|
|
}
|
|
else {
|
|
itemConfig = GHIDRA_CAST<ItemConfig_Item *>(0x0);
|
|
}
|
|
}
|
|
else {
|
|
LAB_00998b3f:
|
|
collectibleConfigs = (g_manager->_itemConfig)._collectibles._begin;
|
|
if (GHIDRA_INT((g_manager->_itemConfig)._collectibles._end) - GHIDRA_INT(collectibleConfigs) >> 2 <=
|
|
GHIDRA_INT(local_100)) goto LAB_00998f1b;
|
|
itemConfig = *GHIDRA_CAST<ItemConfig_Item **>((GHIDRA_CAST<char *>(collectibleConfigs) + GHIDRA_INT(local_100) * 4));
|
|
}
|
|
if ((itemConfig != GHIDRA_CAST<ItemConfig_Item *>(0x0)) &&
|
|
((itemConfig->type != 3 || (itemConfig->id == local_fc->_activeDesc[0]._item)))) {
|
|
if (GHIDRA_INT(local_100) < 0x2dd) {
|
|
if (GHIDRA_INT(local_100) < 1) {
|
|
local_100 = 1.02715e-42;
|
|
}
|
|
else {
|
|
local_100 = (float)(GHIDRA_INT(local_100) - 1);
|
|
}
|
|
if ((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c)))) != 0) &&
|
|
((6 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)) ||
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
6 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)))))) {
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c))));
|
|
local_108 = *GHIDRA_CAST<std_string **>((iVar7 + 0x50));
|
|
if ((iVar7 == 0) ||
|
|
((GHIDRA_INT(local_108) < 0 || (*GHIDRA_CAST<int *>((iVar7 + 0x1c)) <= GHIDRA_INT(local_108))))) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x40)))) + GHIDRA_INT(local_108) * 4)) = 0;
|
|
AnimationState::AdvanceLayerPosition
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))),GHIDRA_INT(local_108),(float)GHIDRA_INT(local_100))
|
|
;
|
|
}
|
|
local_120.x = local_10c + screenCenter.x;
|
|
local_120.y = local_110 + screenCenter.y;
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x111))) != '\0') {
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x78))) == '\0') {
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c))));
|
|
if (((iVar7 != 0) && (6 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)))) &&
|
|
(iVar9 = *GHIDRA_CAST<int *>((iVar7 + 0x50)), -1 < iVar9)) {
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar9 * 0x10 + *GHIDRA_CAST<int *>((iVar7 + 0x18)))),&local_120,
|
|
*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x40)))) + iVar9 * 4)),&g_vectorZero,
|
|
&g_vectorZero,*GHIDRA_CAST<ANM2 **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))));
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x5c))));
|
|
if (((iVar7 != 0) && (6 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x58)))) + 0x80)))) &&
|
|
(iVar9 = *GHIDRA_CAST<int *>((iVar7 + 0x50)), -1 < iVar9)) {
|
|
pAVar12 = *GHIDRA_CAST<ANM2 **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x58))));
|
|
animLayer = GHIDRA_CAST<AnimationLayer *>((iVar9 * 0x10 + *GHIDRA_CAST<int *>((iVar7 + 0x18))));
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x60))));
|
|
goto LAB_00998e94;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x5c))));
|
|
if (((iVar7 != 0) && (6 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x58)))) + 0x80)))) &&
|
|
(iVar9 = *GHIDRA_CAST<int *>((iVar7 + 0x50)), -1 < iVar9)) {
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar9 * 0x10 + *GHIDRA_CAST<int *>((iVar7 + 0x18)))),&local_120,
|
|
*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x60)))) + iVar9 * 4)),&g_vectorZero,
|
|
&g_vectorZero,*GHIDRA_CAST<ANM2 **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x58)))));
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c))));
|
|
if (((iVar7 != 0) && (6 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)))) &&
|
|
(iVar9 = *GHIDRA_CAST<int *>((iVar7 + 0x50)), -1 < iVar9)) {
|
|
pAVar12 = *GHIDRA_CAST<ANM2 **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38))));
|
|
animLayer = GHIDRA_CAST<AnimationLayer *>((iVar9 * 0x10 + *GHIDRA_CAST<int *>((iVar7 + 0x18))));
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x40))));
|
|
LAB_00998e94:
|
|
AnimationLayer::RenderFrame
|
|
(animLayer,&local_120,*GHIDRA_CAST<int *>((iVar7 + iVar9 * 4)),&g_vectorZero,
|
|
&g_vectorZero,pAVar12);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c)))) == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("AnimationData is NULL\n"));
|
|
}
|
|
if (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)) < 7) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n"));
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c))));
|
|
if (((iVar7 == 0) || (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)) < 6)) ||
|
|
((iVar9 = *GHIDRA_CAST<int *>((iVar7 + 0x50)), iVar9 < 0 || (*GHIDRA_CAST<int *>((iVar7 + 0x1c)) <= iVar9))))
|
|
{
|
|
LAB_00998bff:
|
|
iVar7 = 0;
|
|
}
|
|
else {
|
|
layerEntry = iVar9 * 0x10 + *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c)))) + 0x18));
|
|
iVar7 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x40)))) + iVar9 * 4));
|
|
if ((iVar7 < 0) || (*GHIDRA_CAST<int *>((layerEntry + 8)) <= iVar7)) goto LAB_00998bff;
|
|
iVar7 = iVar7 * 0x6c + *GHIDRA_CAST<int *>((layerEntry + 4));
|
|
}
|
|
if (iVar7 != 0) {
|
|
tmpColor._unk = 7;
|
|
if (((uint8_t)g_graphicsManager_flags & 4) == 0) {
|
|
tmpColor._green = 8.40779e-45;
|
|
}
|
|
else {
|
|
tmpColor._green = 1.4013e-45;
|
|
}
|
|
tmpColor._red = 0.0;
|
|
tmpColor._blue = 9.80909e-45;
|
|
tmpColor._alpha = 1.4013e-45;
|
|
tmpColorMod._offset[0] = 0.0;
|
|
tmpColorMod._tint[0] = 1.0;
|
|
tmpColorMod._tint[1] = 1.0;
|
|
tmpColorMod._tint[2] = 1.0;
|
|
tmpColorMod._tint[3] = 1.0;
|
|
tmpColorMod._offset[1] = 0.0;
|
|
drawPos.x = screenCenter.x + *GHIDRA_CAST<float *>((iVar7 + 0x10)) + local_10c;
|
|
tmpColorMod._offset[2] = 0.0;
|
|
tmpColorMod._colorize[0] = 0.0;
|
|
tmpColorMod._colorize[1] = 0.0;
|
|
tmpColorMod._colorize[2] = 0.0;
|
|
tmpColorMod._colorize[3] = 0.0;
|
|
drawPos.y = screenCenter.y + *GHIDRA_CAST<float *>((iVar7 + 0x14)) + local_110;
|
|
ModManager::RenderCustomCollectionItem
|
|
(GHIDRA_CAST<ModManager *>(&g_manager->_modManager),GHIDRA_UINT(local_100),&drawPos,
|
|
&g_vectorOne,&tmpColorMod,&tmpColor);
|
|
}
|
|
}
|
|
local_10c = local_10c + 16.0;
|
|
local_110 = local_110 + 2.5;
|
|
if (128.0 <= local_10c) {
|
|
local_10c = local_10c - 132.0;
|
|
local_110 = local_110 - 4.0;
|
|
}
|
|
local_104 = local_104 - 1;
|
|
}
|
|
}
|
|
LAB_00998f1b:
|
|
pvVar5 = (void *)(GHIDRA_INT(pvVar5) + 0x1c);
|
|
} while (pvVar5 != (local_fc->_history)._historyItems._end);
|
|
}
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(smallFont[1])) + 0x10)))) != 0) {
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c)))) == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("AnimationData is NULL\n"));
|
|
}
|
|
if (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)) < 6) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n"));
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c))));
|
|
if ((((iVar7 != 0) && (4 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))) + 0x80)))) &&
|
|
(iVar9 = *GHIDRA_CAST<int *>((iVar7 + 0x4c)), -1 < iVar9)) && (iVar9 < *GHIDRA_CAST<int *>((iVar7 + 0x1c)))) {
|
|
layerEntry = iVar9 * 0x10 + *GHIDRA_CAST<int *>((iVar7 + 0x18));
|
|
iVar7 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x40)))) + iVar9 * 4));
|
|
if (((-1 < iVar7) && (iVar7 < *GHIDRA_CAST<int *>((layerEntry + 8)))) &&
|
|
(iVar7 = iVar7 * 0x6c + *GHIDRA_CAST<int *>((layerEntry + 4)), iVar7 != 0)) {
|
|
drawPos.x = screenCenter.x + *GHIDRA_CAST<float *>((iVar7 + 0x10));
|
|
iVar9 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(smallFont[1])) + 0x10))));
|
|
tmpColorMod._offset[0] = 0.0;
|
|
tmpColorMod._offset[1] = 0.0;
|
|
tmpColorMod._offset[2] = 0.0;
|
|
tmpColorMod._tint[0] = 1.0;
|
|
tmpColorMod._tint[1] = 1.0;
|
|
tmpColorMod._tint[2] = 1.0;
|
|
tmpColorMod._tint[3] = 1.0;
|
|
tmpColorMod._colorize[0] = 0.0;
|
|
tmpColorMod._colorize[1] = 0.0;
|
|
tmpColorMod._colorize[2] = 0.0;
|
|
tmpColorMod._colorize[3] = 0.0;
|
|
drawPos.y = screenCenter.y + *GHIDRA_CAST<float *>((iVar7 + 0x14));
|
|
if (((iVar9 != 0) && (iVar7 = *GHIDRA_CAST<int *>((iVar9 + 0x160)), iVar7 != 0)) &&
|
|
(pAVar12 = GHIDRA_CAST<ANM2 *>((iVar7 + 0xdf0)), *GHIDRA_CAST<char *>((iVar7 + 0xef9)) != '\0')) {
|
|
ANM2::SetFrame(pAVar12,GHIDRA_CAST<std_string *>((iVar7 + 0xe08)),*GHIDRA_CAST<int *>((iVar9 + 100)));
|
|
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(pAVar12))))->Sprite::SetColor(&tmpColorMod);
|
|
*GHIDRA_CAST<float *>((iVar7 + 0xe8c)) = g_vectorOne.x;
|
|
*GHIDRA_CAST<float *>((iVar7 + 0xe90)) = g_vectorOne.y;
|
|
ANM2::Render(pAVar12,&drawPos,&g_vectorZero,&g_vectorZero);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
game = g_game;
|
|
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
|
|
uVar4 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((g_game->_seedEffects))) + 0x4))));
|
|
if (uVar4 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Error: Game Start Seed was not set.\n"));
|
|
uVar4 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((game->_seedEffects))) + 0x4))));
|
|
}
|
|
Seeds::Seed2String(GHIDRA_CAST<std_string *>(&local_f4),uVar4);
|
|
uVar4 = local_e0;
|
|
local_14 = 5;
|
|
local_108 = GHIDRA_CAST<std_string *>(&local_f4);
|
|
if (0xf < local_e0) {
|
|
local_108 = local_f4;
|
|
}
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c)))) != 0) {
|
|
nullFrame = AnimationState::GetNullFrame
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))),GHIDRA_CAST<uint8_t *>("SeedPos"));
|
|
uVar11 = local_e4;
|
|
if (nullFrame != GHIDRA_CAST<float *>(0x0)) {
|
|
local_124 = g_screenHeight * 0.5 + nullFrame[1];
|
|
local_100 = g_screenWidth * 0.5 + *nullFrame;
|
|
copyLen = 4;
|
|
if (local_e4 < 4) {
|
|
copyLen = local_e4;
|
|
}
|
|
seedHalf[0] = 0;
|
|
seedHalf[1] = 0;
|
|
seedHalf[2] = 0;
|
|
seedHalf[3] = 0;
|
|
seedHalf[4] = 0;
|
|
seedHalf[5] = 0;
|
|
seedHalf[6] = 0;
|
|
seedHalf[7] = 0;
|
|
seedHalf[8] = 0;
|
|
seedHalf[9] = 0;
|
|
seedHalf[10] = 0;
|
|
seedHalf[0xb] = 0;
|
|
uStack_c8 = 0;
|
|
memcpy(seedHalf,local_108,copyLen);
|
|
pMVar2 = g_manager;
|
|
tmpColorMod._colorize[0] = 0.0;
|
|
tmpColorMod._colorize[1] = 9.18341e-41;
|
|
tmpColorMod._colorize[2] = 0.0;
|
|
tmpColorMod._colorize[3] = 1.0;
|
|
tmpColorMod._offset[0] = -NAN;
|
|
tmpColorMod._offset[1] = 0.0;
|
|
tmpColorMod._offset[2] = 0.0;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 6;
|
|
(GHIDRA_CAST<KColor *>((&tmpColor)))->KColor::SetFromARGB(0xff362f2d);
|
|
local_100 = local_100 - 4.0;
|
|
Font::DrawString(&pMVar2->_font2_TeamMeatEx12,seedHalf,color,tmpColorMod._colorize,
|
|
local_100,local_124 + 2.0);
|
|
seedHalf[0] = 0;
|
|
seedHalf[1] = 0;
|
|
seedHalf[2] = 0;
|
|
seedHalf[3] = 0;
|
|
seedHalf[4] = 0;
|
|
seedHalf[5] = 0;
|
|
seedHalf[6] = 0;
|
|
seedHalf[7] = 0;
|
|
seedHalf[8] = 0;
|
|
seedHalf[9] = 0;
|
|
seedHalf[10] = 0;
|
|
seedHalf[0xb] = 0;
|
|
uStack_c8 = 0;
|
|
copyLen = 4;
|
|
if (uVar11 - 4 < 4) {
|
|
copyLen = uVar11 - 4;
|
|
}
|
|
memcpy(seedHalf,local_108->_buf + 5,copyLen);
|
|
pMVar2 = g_manager;
|
|
tmpColorMod._colorize[0] = 0.0;
|
|
tmpColorMod._colorize[1] = 9.18341e-41;
|
|
tmpColorMod._colorize[2] = 0.0;
|
|
tmpColorMod._colorize[3] = 1.0;
|
|
tmpColorMod._offset[0] = -NAN;
|
|
tmpColorMod._offset[1] = 0.0;
|
|
tmpColorMod._offset[2] = 0.0;
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),7);
|
|
(GHIDRA_CAST<KColor *>((&tmpColor)))->KColor::SetFromARGB(0xff362f2d);
|
|
Font::DrawString(&pMVar2->_font2_TeamMeatEx12,seedHalf,color_00,tmpColorMod._colorize,
|
|
local_100,local_124 + 17.0);
|
|
uVar4 = local_e0;
|
|
}
|
|
}
|
|
if (0xf < uVar4) {
|
|
uVar11 = uVar4 + 1;
|
|
ptr = local_f4;
|
|
if (0xfff < uVar11) {
|
|
ptr = GHIDRA_CAST<std_string *>(local_f4[-1]._capacity);
|
|
uVar11 = uVar4 + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(local_f4) + (-4 - GHIDRA_INT(ptr))))) {
|
|
LAB_0099978e:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(ptr,uVar11);
|
|
}
|
|
}
|
|
else {
|
|
local_108 = *GHIDRA_CAST<std_string **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(smallFont[1])) + 0x4))));
|
|
iVar9 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(smallFont[1])) + 0x8)))) - GHIDRA_INT(local_108);
|
|
local_104 = 0;
|
|
iVar7 = iVar9 >> 0x1f;
|
|
if (iVar9 / 0x38 + iVar7 != iVar7) {
|
|
local_fc = GHIDRA_CAST<Entity_Player *>(0x0);
|
|
do {
|
|
if (GHIDRA_CAST<Entity_Player *>(0xdf) < local_fc) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
memberEntry = local_108->_buf + GHIDRA_INT(local_fc);
|
|
local_120.x = (float)KAGE::System::UserProfileBase::vftable;
|
|
(GHIDRA_CAST<UserProfile *>((memberEntry)))->UserProfile::find_or_create();
|
|
local_14 = 0;
|
|
local_120.x = (float)KAGE::System::UserProfile::vftable;
|
|
local_120.y = extraout_EAX;
|
|
if (((extraout_EAX != 0.0) &&
|
|
(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(extraout_EAX) + 8)) != 0 || *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(extraout_EAX) + 0xc)) != 0)) &&
|
|
(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(extraout_EAX) + 0x14)) == 0)) {
|
|
(GHIDRA_CAST<KAGE::System::UserProfile *>((&local_120)))->KAGE::System::UserProfile::load_steam_avatar();
|
|
}
|
|
local_14 = 1;
|
|
cVar3 = (**(code **)(GHIDRA_CAST<char *>(local_120.x) + 0x14))();
|
|
local_14 = 0xffffffff;
|
|
local_120.x = (float)KAGE::System::UserProfileBase::vftable;
|
|
if (cVar3 != '\0') {
|
|
pLVar6 = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x8)))),GHIDRA_CAST<uint8_t *>("DeedsMe"));
|
|
if (pLVar6 == GHIDRA_CAST<LayerState *>(0x0)) {
|
|
KAGE_LogMessage(4,GHIDRA_CAST<uint8_t *>("[warn] no layer named %s\n"));
|
|
}
|
|
else {
|
|
ANM2::SetLayerFrame(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x8)))),*GHIDRA_CAST<int *>(pLVar6->_layerData),local_104);
|
|
}
|
|
}
|
|
local_104 = local_104 + 1;
|
|
sprintf_s(nullName,0x40,GHIDRA_CAST<uint8_t *>("Player%d Text"));
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x3c)))) == 0) {
|
|
nullFrame = GHIDRA_CAST<float *>(0x0);
|
|
}
|
|
else {
|
|
nullFrame = AnimationState::GetNullFrame(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((smallFont)) + 0x38)))),nullName);
|
|
}
|
|
drawPos.y = screenCenter.y + nullFrame[1];
|
|
drawPos.x = screenCenter.x + *nullFrame;
|
|
local_f4 = GHIDRA_CAST<std_string *>(0x55ffff);
|
|
local_f0[4] = '\0';
|
|
local_f0[5] = '\0';
|
|
local_f0[6] = -0x80;
|
|
local_f0[7] = '?';
|
|
local_f0[8] = -1;
|
|
local_f0[9] = -1;
|
|
local_f0[10] = -1;
|
|
local_f0[0xb] = -1;
|
|
local_e4 = 0;
|
|
local_e0 = 0;
|
|
local_14 = 2;
|
|
text = memberEntry + 8;
|
|
local_f8 = 1;
|
|
local_f0[0] = '\x02';
|
|
local_f0[1] = '\0';
|
|
local_f0[2] = '\0';
|
|
local_f0[3] = '\0';
|
|
tmpColor._unk = 0;
|
|
tmpColor._red = 0.21176471;
|
|
tmpColor._green = 0.18431373;
|
|
tmpColor._blue = 0.1764706;
|
|
tmpColor._alpha = 1.0;
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((memberEntry + 0x1c))) {
|
|
text = *GHIDRA_CAST<char **>(text);
|
|
}
|
|
local_110 = drawPos.y;
|
|
Font::DrawStringScaled
|
|
(&g_manager->_font2_TeamMeatEx12,GHIDRA_CAST<uint8_t *>(text),&drawPos,&tmpColor,&local_f8);
|
|
deedName = GHIDRA_CAST<uint8_t *>(&DAT_00c78f08);
|
|
drawPos.y = local_110 + 18.0;
|
|
smallFont = &g_manager->_font1_TeamMeatEx10;
|
|
local_10c = 0.0;
|
|
local_100 = 0.0;
|
|
local_110 = drawPos.y;
|
|
do {
|
|
if (2 < GHIDRA_INT(local_10c)) break;
|
|
cVar3 = FUN_008ca1d0(*(uint32_t *)
|
|
(GHIDRA_INT((local_fc->_sprite)._filename._buf) + GHIDRA_INT((local_108 + -3))),
|
|
*GHIDRA_CAST<uint32_t *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_fc)) + 0x4))) + GHIDRA_INT(local_108))),local_100);
|
|
if (cVar3 != '\0') {
|
|
pbVar10 = deedName;
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((deedName + 0x14))) {
|
|
pbVar10 = *GHIDRA_CAST<uint8_t **>(deedName);
|
|
}
|
|
translatedText = string_table_translate(&g_manager->_stringTable,pbVar10);
|
|
seedHalf[8] = 0;
|
|
seedHalf[9] = 0;
|
|
seedHalf[10] = 0;
|
|
seedHalf[0xb] = 0;
|
|
uStack_c8 = 0xf;
|
|
deedText[0] = GHIDRA_CAST<uint8_t *******>(0x0);
|
|
pbVar10 = translatedText;
|
|
do {
|
|
bVar1 = *pbVar10;
|
|
pbVar10 = pbVar10 + 1;
|
|
} while (bVar1 != 0);
|
|
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(deedText))))->msvc::string::assign(translatedText,
|
|
GHIDRA_INT(pbVar10) - GHIDRA_INT((translatedText + 1)));
|
|
local_124 = (float)(GHIDRA_UINT(local_124) | 1);
|
|
tmpColorMod._colorize[0] = 1.4013e-45;
|
|
tmpColorMod._colorize[1] = 9.18341e-41;
|
|
tmpColorMod._colorize[2] = 0.0;
|
|
tmpColorMod._colorize[3] = 1.0;
|
|
tmpColorMod._offset[0] = -NAN;
|
|
tmpColorMod._offset[1] = 0.0;
|
|
tmpColorMod._offset[2] = 0.0;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 4;
|
|
pppppppbVar8 = GHIDRA_CAST<uint8_t *******>(deedText);
|
|
if (0xf < uStack_c8) {
|
|
pppppppbVar8 = deedText[0];
|
|
}
|
|
tmpColor._unk = 0;
|
|
tmpColor._red = 0.21176471;
|
|
tmpColor._green = 0.18431373;
|
|
tmpColor._blue = 0.1764706;
|
|
tmpColor._alpha = 1.0;
|
|
Font::DrawStringScaled
|
|
(smallFont,GHIDRA_CAST<uint8_t *>(pppppppbVar8),&drawPos,&tmpColor,tmpColorMod._colorize);
|
|
drawPos.y = local_110 + 15.0;
|
|
local_10c = (float)(GHIDRA_INT(local_10c) + 1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),2);
|
|
local_110 = drawPos.y;
|
|
if (0xf < uStack_c8) {
|
|
uVar4 = uStack_c8 + 1;
|
|
pppppppbVar8 = deedText[0];
|
|
if (0xfff < uVar4) {
|
|
pppppppbVar8 = GHIDRA_CAST<uint8_t *******>(deedText[0][-1]);
|
|
uVar4 = uStack_c8 + 0x24;
|
|
if (GHIDRA_CAST<uint8_t *>(0x1f) < GHIDRA_CAST<uint8_t *>((GHIDRA_INT(deedText[0]) + (-4 - GHIDRA_INT(pppppppbVar8)))))
|
|
goto LAB_0099978e;
|
|
}
|
|
operator_delete(pppppppbVar8,uVar4);
|
|
}
|
|
}
|
|
deedName = deedName + 0x18;
|
|
local_100 = (float)(GHIDRA_INT(local_100) + 1);
|
|
} while (GHIDRA_INT(deedName) < 0xc79100);
|
|
local_fc = GHIDRA_CAST<Entity_Player *>(&local_fc->_spawnerVariant);
|
|
local_14 = 0xffffffff;
|
|
local_108 = *GHIDRA_CAST<std_string **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(smallFont[1])) + 0x4))));
|
|
} while (local_104 < GHIDRA_UINT(((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(smallFont[1])) + 0x8)))) - GHIDRA_INT(local_108)) / 0x38)));
|
|
}
|
|
}
|
|
}
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 009997c0
|
|
void GameOver::Show()
|
|
{
|
|
uint64_t qVar1;
|
|
uint8_t bVar2;
|
|
uint32_t uVar3;
|
|
Entity_Player *deadPlayer;
|
|
LayerState *layer;
|
|
int extraout_ECX;
|
|
uint8_t *pbVar4;
|
|
int layerId;
|
|
void *pvVar5;
|
|
int extraout_EDX;
|
|
uint32_t uVar6;
|
|
uint8_t *nameEnd;
|
|
char *anm2Path;
|
|
int iVar7;
|
|
int layerId;
|
|
Game *game;
|
|
uint32_t uStack_88;
|
|
EntityConfig_Entity *pEStack_84;
|
|
int stageFrame;
|
|
uint64_t uStack_74;
|
|
void *pvStack_6c;
|
|
uint32_t uStack_5c;
|
|
uint32_t uStack_58;
|
|
uint32_t uStack_54;
|
|
uint32_t uStack_50;
|
|
uint32_t uStack_4c;
|
|
uint32_t uStack_48;
|
|
uint32_t uStack_44;
|
|
uint32_t uStack_40;
|
|
std_string anm2File;
|
|
uint8_t playerLabel [12];
|
|
int playerType;
|
|
uint32_t local_14;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t local_8;
|
|
bool isBossKiller;
|
|
Manager *manager;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0d825;
|
|
local_10 = ExceptionList;
|
|
local_14 = __security_cookie ^ GHIDRA_UINT((playerLabel + 0x20));
|
|
ExceptionList = &local_10;
|
|
if ((g_game->_pauseScreen)._state != 0) {
|
|
(GHIDRA_CAST<PopupWindow *>((&g_game->_pauseScreen)))->PopupWindow::hide();
|
|
}
|
|
manager = g_manager;
|
|
*GHIDRA_CAST<uint32_t *>(this) = 2;
|
|
*GHIDRA_CAST<uint8_t *>((this + 1)) = 1;
|
|
PopupButtons::reset(&manager->_popupButtons,1);
|
|
if (*GHIDRA_CAST<int *>((extraout_EDX + 0x4b3d8)) == *GHIDRA_CAST<int *>((extraout_EDX + 0x4b3dc))) {
|
|
*GHIDRA_CAST<uint32_t *>((extraout_ECX + 0x11c)) = 3;
|
|
uVar3 = 2;
|
|
}
|
|
else {
|
|
*(code **)(extraout_ECX + 0x264) = FUN_008cb190;
|
|
uVar3 = 6;
|
|
*GHIDRA_CAST<GameOver **>((extraout_ECX + 0x268)) = this;
|
|
*GHIDRA_CAST<uint32_t *>((extraout_ECX + 0x118)) = 0x42c00000;
|
|
*GHIDRA_CAST<uint32_t *>((extraout_ECX + 0x114)) = 0x42c00000;
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((extraout_ECX + 0x24c)) = uVar3;
|
|
anm2Path = "gfx/ui/DeedsDeathScreen.anm2";
|
|
if (*GHIDRA_CAST<int *>((extraout_EDX + 0x4b3d8)) == *GHIDRA_CAST<int *>((extraout_EDX + 0x4b3dc))) {
|
|
anm2Path = "gfx/ui/Death Screen.anm2";
|
|
}
|
|
anm2File._size = 0;
|
|
anm2File._capacity = 0xf;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anm2File._buf)) + 0x0))) = (void *)0x0;
|
|
pbVar4 = GHIDRA_CAST<uint8_t *>(anm2Path);
|
|
do {
|
|
bVar2 = *pbVar4;
|
|
pbVar4 = pbVar4 + 1;
|
|
} while (bVar2 != 0);
|
|
(GHIDRA_CAST<msvc::string *>((anm2File._buf)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>(anm2Path),GHIDRA_INT(pbVar4) - GHIDRA_INT((anm2Path + 1)));
|
|
local_8 = 0;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),&anm2File,1);
|
|
local_8 = 0xffffffff;
|
|
if (0xf < anm2File._capacity) {
|
|
uVar6 = anm2File._capacity + 1;
|
|
pvVar5 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)anm2File._buf)) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
pvVar5 = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anm2File._buf)) + 0x0))) + -4);
|
|
uVar6 = anm2File._capacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anm2File._buf)) + 0x0))) + (-4 - GHIDRA_INT(pvVar5))))) {
|
|
LAB_009998fd:
|
|
local_8 = 0xffffffff;
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar5,uVar6);
|
|
}
|
|
anm2File._size = 0;
|
|
anm2File._capacity = 0xf;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anm2File._buf)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(anm2File._buf)) + 0x0))) & 0xffffff00;
|
|
iVar7 = g_game->_stage;
|
|
if ((g_game->_difficulty == 2) || (layerId = iVar7, g_game->_difficulty == 3)) {
|
|
if (iVar7 < 5) {
|
|
layerId = iVar7 * 2 + -1;
|
|
}
|
|
else {
|
|
layerId = 0;
|
|
if (iVar7 == 5) {
|
|
layerId = 10;
|
|
}
|
|
}
|
|
}
|
|
bVar2 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),GHIDRA_CAST<uint8_t *>("Diary"),1);
|
|
if (((bVar2 != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) != 0)) &&
|
|
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),0.0),
|
|
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) != 0)) {
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4c))) = 0;
|
|
}
|
|
if ((layerId < 9) && ((g_game->_stageType == 4 || (g_game->_stageType == 5)))) {
|
|
switch(layerId) {
|
|
case 1:
|
|
case 2:
|
|
stageFrame = 7;
|
|
break;
|
|
case 3:
|
|
case 4:
|
|
stageFrame = 8;
|
|
break;
|
|
case 5:
|
|
case 6:
|
|
stageFrame = 9;
|
|
break;
|
|
case 7:
|
|
case 8:
|
|
stageFrame = 10;
|
|
break;
|
|
default:
|
|
goto code_r0x009999d4;
|
|
}
|
|
}
|
|
else {
|
|
code_r0x009999d4:
|
|
switch(layerId) {
|
|
case 1:
|
|
case 2:
|
|
stageFrame = 0;
|
|
break;
|
|
case 3:
|
|
case 4:
|
|
stageFrame = 1;
|
|
break;
|
|
case 5:
|
|
case 6:
|
|
stageFrame = 2;
|
|
break;
|
|
case 7:
|
|
case 8:
|
|
stageFrame = 3;
|
|
break;
|
|
case 9:
|
|
stageFrame = 5;
|
|
break;
|
|
default:
|
|
stageFrame = 4;
|
|
break;
|
|
case 0xc:
|
|
stageFrame = 6;
|
|
break;
|
|
case 0xd:
|
|
stageFrame = 0xb;
|
|
}
|
|
}
|
|
if (((0 < g_game->_stage) && (g_game->_stage < 7)) &&
|
|
((g_game->_gameStateFlags & 0x1000000000000) != 0)) {
|
|
stageFrame = 0xc;
|
|
}
|
|
deadPlayer = *GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((g_game->_playerManager))) + 0x7c))));
|
|
if (deadPlayer == GHIDRA_CAST<Entity_Player *>(0x0)) {
|
|
deadPlayer = Game::GetPlayer(g_game,0);
|
|
}
|
|
if (deadPlayer->_playerType == 0x28) {
|
|
deadPlayer = GHIDRA_CAST<Entity_Player *>(deadPlayer->_twinPlayer);
|
|
}
|
|
KAGE_LogMessage(1,GHIDRA_CAST<uint8_t *>("Game Over. Killed by (%d.%d) spawned by (%d.%d) damage flags (%d)\n"));
|
|
layerId = (deadPlayer->_lastDamageSource)._type;
|
|
pEStack_84 = GHIDRA_CAST<EntityConfig_Entity *>(0x0);
|
|
iVar7 = -1;
|
|
if ((((layerId == 0) ||
|
|
(pEStack_84 = EntityConfig::GetEntity
|
|
(&g_manager->_entityConfig,layerId,
|
|
(deadPlayer->_lastDamageSource)._variant,0),
|
|
pEStack_84 == GHIDRA_CAST<EntityConfig_Entity *>(0x0))) || (iVar7 = pEStack_84->portrait, iVar7 == -1)) &&
|
|
(((layerId = (deadPlayer->_lastDamageSource)._spawnerType, layerId == 0 ||
|
|
(pEStack_84 = EntityConfig::GetEntity
|
|
(&g_manager->_entityConfig,layerId,
|
|
(deadPlayer->_lastDamageSource)._spawnerVariant,0),
|
|
pEStack_84 == GHIDRA_CAST<EntityConfig_Entity *>(0x0))) || (iVar7 = pEStack_84->portrait, iVar7 == -1))))
|
|
{
|
|
layerId = (deadPlayer->_lastDamageSource)._type;
|
|
if (layerId == 4) {
|
|
iVar7 = 0x41;
|
|
}
|
|
else if ((layerId == 0) && ((deadPlayer->_lastDamageSource)._variant != 0)) {
|
|
layerId = (deadPlayer->_lastDamageSource)._variant;
|
|
LAB_00999b62:
|
|
if (layerId == 0x19) {
|
|
iVar7 = 0xca;
|
|
}
|
|
else if (layerId == 10000) {
|
|
iVar7 = 0xe5;
|
|
}
|
|
else if (layerId == 0x2711) {
|
|
iVar7 = 0xeb;
|
|
}
|
|
else if (layerId == 0x2712) {
|
|
iVar7 = 0xef;
|
|
}
|
|
else {
|
|
if (layerId != 0x2713) goto LAB_00999bb5;
|
|
iVar7 = 0xfd;
|
|
}
|
|
}
|
|
else {
|
|
if (((deadPlayer->_lastDamageSource)._spawnerType == 0) &&
|
|
((deadPlayer->_lastDamageSource)._spawnerVariant != 0)) {
|
|
if ((layerId != 0) || (layerId = (deadPlayer->_lastDamageSource)._variant, layerId == 0)) {
|
|
layerId = (deadPlayer->_lastDamageSource)._spawnerVariant;
|
|
}
|
|
goto LAB_00999b62;
|
|
}
|
|
LAB_00999bb5:
|
|
qVar1 = deadPlayer->_lastDamageFlags;
|
|
if ((qVar1 & 0x80) == 0) {
|
|
if ((qVar1 & 0x10000) == 0) {
|
|
if ((qVar1 & 0x200) == 0) {
|
|
if ((qVar1 & 0x1000) == 0) {
|
|
if ((qVar1 & 2) == 0) {
|
|
if ((qVar1 & 0x400) == 0) {
|
|
if ((qVar1 & 4) == 0) {
|
|
if ((qVar1 & 0x20000) == 0) {
|
|
if ((qVar1 & 0x40000) != 0) {
|
|
iVar7 = 0x72;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x70;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x41;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x6e;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x44;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x71;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x43;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x75;
|
|
}
|
|
}
|
|
else {
|
|
iVar7 = 0x42;
|
|
}
|
|
}
|
|
if (pEStack_84 != GHIDRA_CAST<EntityConfig_Entity *>(0x0)) goto LAB_00999c6f;
|
|
LAB_00999c79:
|
|
isBossKiller = false;
|
|
}
|
|
else {
|
|
LAB_00999c6f:
|
|
isBossKiller = true;
|
|
if (pEStack_84->isBoss == 0) goto LAB_00999c79;
|
|
}
|
|
game = g_game;
|
|
playerType = deadPlayer->_playerType;
|
|
if (iVar7 < 0) {
|
|
iVar7 = 0x95;
|
|
}
|
|
uStack_88 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((g_game->_seedEffects))) + 0x4))));
|
|
if (uStack_88 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Error: Game Start Seed was not set.\n"));
|
|
uStack_88 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((game->_seedEffects))) + 0x4))));
|
|
}
|
|
if ((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) != 0) &&
|
|
((1 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) ||
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
1 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)))))) {
|
|
layerId = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c))));
|
|
layerId = *GHIDRA_CAST<int *>((layerId + 0x3c));
|
|
if ((layerId == 0) || ((layerId < 0 || (*GHIDRA_CAST<int *>((layerId + 0x1c)) <= layerId)))) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x40)))) + layerId * 4)) = 0;
|
|
AnimationState::AdvanceLayerPosition
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),layerId,(float)(uStack_88 % 0xc));
|
|
}
|
|
if ((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) != 0) &&
|
|
((2 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) ||
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
2 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)))))) {
|
|
layerId = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c))));
|
|
layerId = *GHIDRA_CAST<int *>((layerId + 0x40));
|
|
if ((layerId == 0) || ((layerId < 0 || (*GHIDRA_CAST<int *>((layerId + 0x1c)) <= layerId)))) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x40)))) + layerId * 4)) = 0;
|
|
AnimationState::AdvanceLayerPosition
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),layerId,(float)stageFrame);
|
|
}
|
|
if (((8 < *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x88))))) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) != 0)) &&
|
|
((8 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) ||
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
8 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)))))) {
|
|
layerId = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c))));
|
|
layerId = *GHIDRA_CAST<int *>((layerId + 0x58));
|
|
if (((layerId == 0) || (layerId < 0)) || (*GHIDRA_CAST<int *>((layerId + 0x1c)) <= layerId)) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x40)))) + layerId * 4)) = 0;
|
|
AnimationState::AdvanceLayerPosition
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),layerId,(float)stageFrame);
|
|
}
|
|
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),GHIDRA_CAST<uint8_t *>(0x3));
|
|
layer->_visible = 0;
|
|
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),&DAT_00000005);
|
|
layer->_visible = 0;
|
|
if (isBossKiller) {
|
|
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),GHIDRA_CAST<uint8_t *>(0x3));
|
|
layer->_visible = 1;
|
|
if ((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) == 0) ||
|
|
((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) < 4 &&
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) < 4)))) goto LAB_00999f34;
|
|
layerId = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c))));
|
|
layerId = *GHIDRA_CAST<int *>((layerId + 0x44));
|
|
}
|
|
else {
|
|
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),&DAT_00000005);
|
|
layer->_visible = 1;
|
|
if ((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) == 0) ||
|
|
((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) < 6 &&
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) < 6)))) goto LAB_00999f34;
|
|
layerId = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c))));
|
|
layerId = *GHIDRA_CAST<int *>((layerId + 0x4c));
|
|
}
|
|
if (((layerId == 0) || (layerId < 0)) || (*GHIDRA_CAST<int *>((layerId + 0x1c)) <= layerId)) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x40)))) + layerId * 4)) = 0;
|
|
AnimationState::AdvanceLayerPosition(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),layerId,(float)iVar7);
|
|
LAB_00999f34:
|
|
if (((pEStack_84 != GHIDRA_CAST<EntityConfig_Entity *>(0x0)) && (pEStack_84->modEntry != (void *)0x0)) &&
|
|
(pEStack_84->isPortraitModded != 0)) {
|
|
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),GHIDRA_CAST<uint8_t *>(0x3));
|
|
layer->_visible = 0;
|
|
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x8)))),&DAT_00000005);
|
|
layer->_visible = 0;
|
|
if ((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) != 0) &&
|
|
((5 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) ||
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
5 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)))))) {
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c))));
|
|
layerId = *GHIDRA_CAST<int *>((iVar7 + 0x4c));
|
|
if ((iVar7 == 0) || ((layerId < 0 || (*GHIDRA_CAST<int *>((iVar7 + 0x1c)) <= layerId)))) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x40)))) + layerId * 4)) = 0;
|
|
AnimationState::AdvanceLayerPosition(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),layerId,0.0);
|
|
}
|
|
*GHIDRA_CAST<EntityConfig_Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x10)))) = pEStack_84;
|
|
}
|
|
if ((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c)))) != 0) &&
|
|
((4 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)) ||
|
|
(KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("LayerId out of bounds\n")),
|
|
4 < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))) + 0x80)))))) {
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x3c))));
|
|
layerId = *GHIDRA_CAST<int *>((iVar7 + 0x48));
|
|
if ((iVar7 == 0) || ((layerId < 0 || (*GHIDRA_CAST<int *>((iVar7 + 0x1c)) <= layerId)))) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("id out of bounds\n"));
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x40)))) + layerId * 4)) = 0;
|
|
AnimationState::AdvanceLayerPosition
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x38)))),layerId,(float)playerType);
|
|
}
|
|
if (g_manager->_netplayManager != *GHIDRA_CAST<int *>((g_manager + 1))) {
|
|
online_vote_start(this,0,1);
|
|
}
|
|
if (g_manager->_netplayManager != *GHIDRA_CAST<int *>((g_manager + 1))) {
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8))));
|
|
layerId = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x4))));
|
|
if (layerId != iVar7) {
|
|
do {
|
|
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((layerId + 8)))))->msvc::string::_Tidy_deallocate();
|
|
layerId = layerId + 0x38;
|
|
} while (layerId != iVar7);
|
|
layerId = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x4))));
|
|
}
|
|
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) = layerId;
|
|
pEStack_84 = GHIDRA_CAST<EntityConfig_Entity *>(0x0);
|
|
layerId = GHIDRA_INT((g_game->_onlinePlayerStats)._end) - GHIDRA_INT((g_game->_onlinePlayerStats)._begin);
|
|
iVar7 = layerId >> 0x1f;
|
|
if (layerId / 0x68 + iVar7 != iVar7) {
|
|
uStack_88 = 0;
|
|
do {
|
|
game = g_game;
|
|
uStack_74 = 0;
|
|
uStack_5c = 0;
|
|
uStack_58 = 0xf;
|
|
pvStack_6c = (void *)0x0;
|
|
uStack_44 = 0;
|
|
uStack_54 = 0x3f800000;
|
|
uStack_50 = 0x3f800000;
|
|
uStack_4c = 0x3f800000;
|
|
uStack_48 = 0x3f800000;
|
|
uStack_40 = 1;
|
|
local_8 = 1;
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) == *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0xc))))) {
|
|
msvc::vector<56byte>::_Emplace_reallocate(*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))),&uStack_74);
|
|
game = g_game;
|
|
}
|
|
else {
|
|
FUN_008cb3a0();
|
|
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) + 0x38;
|
|
}
|
|
local_8 = 0xffffffff;
|
|
if (0xf < uStack_58) {
|
|
uVar6 = uStack_58 + 1;
|
|
pvVar5 = pvStack_6c;
|
|
if (0xfff < uVar6) {
|
|
pvVar5 = *(void **)(GHIDRA_CAST<char *>(pvStack_6c) + -4);
|
|
uVar6 = uStack_58 + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(pvStack_6c) + (-4 - GHIDRA_INT(pvVar5))))) goto LAB_009998fd;
|
|
}
|
|
operator_delete(pvVar5,uVar6);
|
|
game = g_game;
|
|
}
|
|
pvVar5 = (game->_onlinePlayerStats)._begin;
|
|
uVar3 = *GHIDRA_CAST<uint32_t *>((uStack_88 + 4 + GHIDRA_INT(pvVar5)));
|
|
iVar7 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8))));
|
|
*GHIDRA_CAST<uint32_t *>((iVar7 + -0x38)) = *GHIDRA_CAST<uint32_t *>((uStack_88 + GHIDRA_INT(pvVar5)));
|
|
manager = g_manager;
|
|
*GHIDRA_CAST<uint32_t *>((iVar7 + -0x34)) = uVar3;
|
|
if (manager->_netplayManager == *GHIDRA_CAST<int *>((manager + 1))) {
|
|
PlayerManager::GetPlayerSlotFromController
|
|
(&game->_playerManager,*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) + -0x38)));
|
|
sprintf_s(playerLabel,0x10,GHIDRA_CAST<uint8_t *>("Player %d"));
|
|
pbVar4 = playerLabel;
|
|
do {
|
|
bVar2 = *pbVar4;
|
|
pbVar4 = pbVar4 + 1;
|
|
} while (bVar2 != 0);
|
|
uVar6 = GHIDRA_INT(pbVar4) - GHIDRA_INT((playerLabel + 1));
|
|
pbVar4 = playerLabel;
|
|
}
|
|
else {
|
|
pbVar4 = user_profile_format_display_name
|
|
(*GHIDRA_CAST<uint64_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) + -0x38)),
|
|
&manager->_font1_TeamMeatEx10,0x50);
|
|
nameEnd = pbVar4;
|
|
do {
|
|
bVar2 = *nameEnd;
|
|
nameEnd = nameEnd + 1;
|
|
} while (bVar2 != 0);
|
|
uVar6 = GHIDRA_INT(nameEnd) - GHIDRA_INT((pbVar4 + 1));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) + -0x30)))))->msvc::string::assign(pbVar4,uVar6);
|
|
pEStack_84 = GHIDRA_CAST<EntityConfig_Entity *>((GHIDRA_INT(pEStack_84) + 1));
|
|
uStack_88 = uStack_88 + 0x68;
|
|
} while (pEStack_84 <
|
|
GHIDRA_UINT(((GHIDRA_INT((g_game->_onlinePlayerStats)._end) -
|
|
GHIDRA_INT((g_game->_onlinePlayerStats)._begin)) / 0x68)));
|
|
}
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|