Curation round 2, wave A: anm2 (Anm2Ed JSON), text, config as idiomatic classes; SDL3 platform opens a window
- anm2.h/.cpp take over ANM2, AnimationState, LayerState, AnmCache and the frame data. They read Anm2Ed's JSON documents with simdjson and play them as the game does (interpolation baked at load). src/anm2/ and msvc.h are retired. - font, formatted_text, string_table and rich_text take over the text classes. FormattedText::parse is still bit-exact against its assembly. - options_config and challenge_params take over OptionsConfig, ChallengeParams and the .ini helpers. The tests include Save's exact bytes. - platform.h/.cpp and main.cpp run IsaacMain on SDL3: the window and GL context open, and the run stops at the first built-in shader (FUN_00a13fa0). - source_tree.py: a taken-over parent stays bytes, taken-over methods are not re-emitted as a namespace, and every address in a (a, b, c to d) list on a comment counts as taken over. - log.h: reconstruction_missing() for a taken-over class's methods that are not written yet. 206 functions taken over, boot path 89/615. The full build waits for wave B: item_config, entity_config and mod_manager still use the old APIs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6e1ca7c6c
commit
780767f5e1
161 files changed
+8646
-21919
No files matched your search
@@ -120,11 +120,11 @@ void Entity_Tear::Constructor()
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a0)))) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4a4)))) = 0;
|
||||
local_8 = 6;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearHaloANM2)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_tearHaloANM2);
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_tearEffectANM2);
|
||||
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),8);
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_deadEyeANM2)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_deadEyeANM2);
|
||||
(this->_posDisplacement).y = 0.0;
|
||||
(this->_posDisplacement).x = 0.0;
|
||||
(this->_parentOffset).y = 0.0;
|
||||
@@ -169,7 +169,7 @@ void Entity_Tear::Init(int type, int variant, int subType, uint32_t initSeed)
|
||||
ExceptionList = &local_10;
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::Init(type,variant,subType,initSeed);
|
||||
if (this->_config != (void *)0x0) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(GHIDRA_CAST<std_string *>((GHIDRA_INT(this->_config) + 0x74)),1);
|
||||
ANM2::Load(&this->_sprite,GHIDRA_CAST<std_string *>((GHIDRA_INT(this->_config) + 0x74)),1);
|
||||
}
|
||||
this->_entityGridCollisionClass = 4;
|
||||
this->_collisionDamage = 3.5;
|
||||
@@ -239,7 +239,7 @@ void Entity_Tear::Init(int type, int variant, int subType, uint32_t initSeed)
|
||||
this->_deathFlags = 0;
|
||||
uVar1 = g_graphicsManager_flags;
|
||||
if (this->_variant == 0x25) {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
iVar2 = 1;
|
||||
if ((uVar1 & 4) == 0) {
|
||||
iVar2 = 6;
|
||||
@@ -281,7 +281,7 @@ void Entity_Tear::Init(int type, int variant, int subType, uint32_t initSeed)
|
||||
bulletAnm2Path._capacity = 0x2f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(bulletAnm2Path._buf))) + 0x0))),"gfx/promo/gfuel/bullet tear.anm2",0x21);
|
||||
local_8 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(&bulletAnm2Path,1);
|
||||
ANM2::Load(&this->_sprite,&bulletAnm2Path,1);
|
||||
local_8 = 0xffffffff;
|
||||
if (0xf < bulletAnm2Path._capacity) {
|
||||
uVar1 = bulletAnm2Path._capacity + 1;
|
||||
@@ -316,7 +316,7 @@ void Entity_Tear::Init(int type, int variant, int subType, uint32_t initSeed)
|
||||
local_2c._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_2c._buf))) + 0x0))),"gfx/promo/gfuel/missile.anm2",0x1d);
|
||||
local_8 = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(&local_2c,1);
|
||||
ANM2::Load(&this->_sprite,&local_2c,1);
|
||||
local_8 = 0xffffffff;
|
||||
if (0xf < local_2c._capacity) {
|
||||
uVar1 = local_2c._capacity + 1;
|
||||
@@ -337,7 +337,7 @@ void Entity_Tear::Init(int type, int variant, int subType, uint32_t initSeed)
|
||||
layerIndex = GHIDRA_CAST<uint8_t *>(0x1);
|
||||
}
|
||||
uVar1 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(layerIndex);
|
||||
layer = ANM2::GetLayer(&this->_sprite,layerIndex);
|
||||
iVar2 = 1;
|
||||
if ((uVar1 & 4) == 0) {
|
||||
iVar2 = 6;
|
||||
@@ -372,9 +372,9 @@ void Entity_Tear::ClearReferences()
|
||||
(**(code **)(*GHIDRA_CAST<int *>(this->_laserShotLaser) + 0x28))();
|
||||
}
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::ClearReferences();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearHaloANM2)))->ANM2::Reset();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Reset();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_deadEyeANM2)))->ANM2::Reset();
|
||||
ANM2::Reset(&this->_tearHaloANM2);
|
||||
ANM2::Reset(&this->_tearEffectANM2);
|
||||
ANM2::Reset(&this->_deadEyeANM2);
|
||||
if (this->_stickTarget != (void *)0x0) {
|
||||
apEStack_c[0] = GHIDRA_CAST<Entity_Tear *>(&this->_stickTarget);
|
||||
msvc::multiset<unsigned_int>::erase(apEStack_c);
|
||||
@@ -2752,7 +2752,7 @@ LAB_00668fe9:
|
||||
local_87c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auVar31)) + 0x0)));
|
||||
decayFactor = (GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_150))))->Color::A();
|
||||
auVar31 = ZEXT416(local_87c);
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_150))))->Font::SetLineHeightModifier(decayFactor * (float)local_87c);
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(local_150),decayFactor * (float)local_87c);
|
||||
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(0xffffffff);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(room) + 0x3c))();
|
||||
}
|
||||
@@ -2784,7 +2784,7 @@ LAB_00668fe9:
|
||||
(GHIDRA_CAST<Entity *>((pEVar11)))->Entity::SetSpriteScale(pVVar9);
|
||||
auVar31 = ZEXT416(GHIDRA_UINT(zeroConst));
|
||||
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_7c))))->Color::Color();
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_7c))))->Font::SetLineHeightModifier(0.08);
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(local_7c),0.08);
|
||||
this = tear;
|
||||
if (tear->_variant == 0x1b) {
|
||||
LAB_0066a2e0:
|
||||
@@ -2806,7 +2806,7 @@ LAB_0066a2bc:
|
||||
decayFactor = random_float();
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auVar31)) + 0x0))) = GHIDRA_CAST<Room *>((decayFactor * pointThreeConst + 0.2));
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(auVar31)) + 0x4))) = extraout_var_09;
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_7c))))->Font::SetLineHeightModifier((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)auVar31)) + 0x0))));
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(local_7c),(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)auVar31)) + 0x0))));
|
||||
}
|
||||
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(0xffffffff);
|
||||
pEVar11->SetColor();
|
||||
@@ -3595,7 +3595,7 @@ LAB_0066cdbc:
|
||||
pEVar11 = GHIDRA_CAST<Entity *>(EntityPtr)::Ref();
|
||||
(GHIDRA_CAST<Entity *>((pEVar11)))->Entity::GetNullOffset(&nullOffset,&DAT_00b1d3b0);
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
iVar7 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::GetAnimationLength();
|
||||
iVar7 = AnimationState::GetAnimationLength(animState);
|
||||
local_8ac = GHIDRA_CAST<Entity_Projectile *>((360.0 / (float)iVar7));
|
||||
local_87c = GHIDRA_CAST<Room *>((GHIDRA_CAST<Vector *>((&nullOffset)))->Vector)::GetAngleDegrees();
|
||||
normalize_angle_degrees((float)local_87c);
|
||||
@@ -3722,7 +3722,7 @@ LAB_0066c0c5:
|
||||
(GHIDRA_CAST<Entity_Player *>(local_88c),GHIDRA_CAST<ColorMod *>(local_1d8));
|
||||
playerEffects = GHIDRA_CAST<Color *>((GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite)::Color();
|
||||
decayFactor = (GHIDRA_CAST<Color *>((playerEffects)))->Color::A();
|
||||
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>(local_1d8))))->Font::SetLineHeightModifier(decayFactor);
|
||||
Font::SetLineHeightModifier(GHIDRA_CAST<Font *>(local_1d8),decayFactor);
|
||||
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(0xff);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(room) + 0x3c))();
|
||||
}
|
||||
@@ -3861,7 +3861,7 @@ LAB_0066c6d8:
|
||||
if ((local_8a1 != '\0') &&
|
||||
(bVar4 = (GHIDRA_CAST<Vector *>((&fromTarget2)))->Vector::operator_ne(&g_vectorZero), bVar4 != 0)) {
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
iVar7 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::GetAnimationLength();
|
||||
iVar7 = AnimationState::GetAnimationLength(animState);
|
||||
decayFactor = (float)iVar7;
|
||||
local_8c0 = GHIDRA_CAST<Room *>((360.0 / decayFactor));
|
||||
_empty_check_0x34();
|
||||
@@ -4327,7 +4327,7 @@ LAB_0066de6b:
|
||||
local_8d0 = GHIDRA_CAST<Room *>(((float)local_8d0 * -1.0));
|
||||
}
|
||||
animState = GHIDRA_CAST<AnimationState *>(Config)::GetPillEffects();
|
||||
iVar7 = (GHIDRA_CAST<AnimationState *>((animState)))->AnimationState::GetAnimationLength();
|
||||
iVar7 = AnimationState::GetAnimationLength(animState);
|
||||
decayFactor = (float)iVar7;
|
||||
local_8c0 = GHIDRA_CAST<Room *>((360.0 / decayFactor));
|
||||
_empty_check_0x34();
|
||||
@@ -5028,7 +5028,7 @@ LAB_0066fb70:
|
||||
room->_gridEntities[0x59] = (void *)0x0;
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((room->_gridEntities + 9)))))->Sprite::SetRotation(180.0);
|
||||
outResult = GHIDRA_CAST<TypeDescriptor *>(0x66fbea);
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)))))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Stuck"),0);
|
||||
ANM2::Play(GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)),GHIDRA_CAST<uint8_t *>("Stuck"),0);
|
||||
}
|
||||
pBVar6 = BitSet128::operator_and
|
||||
(&hydrobounceMask6,GHIDRA_CAST<BitSet128 *>((room->_gridEntities + 0x101)),
|
||||
@@ -5268,7 +5268,7 @@ LAB_0067039b:
|
||||
local_8ac = GHIDRA_CAST<Entity_Projectile *>(*puVar13);
|
||||
local_8e0 = GHIDRA_CAST<Entity_Player *>(puVar13[1]);
|
||||
outResult = GHIDRA_CAST<TypeDescriptor *>(0x670463);
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)))))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Stuck"),0);
|
||||
ANM2::Play(GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)),GHIDRA_CAST<uint8_t *>("Stuck"),0);
|
||||
if ((float)local_87c <= *GHIDRA_CAST<float *>(pRVar28)) {
|
||||
if (*GHIDRA_CAST<float *>(pRVar28) <= (float)local_8ac) {
|
||||
if ((float)local_8cc <= (float)room->_gridEntities[199]) {
|
||||
@@ -5541,7 +5541,8 @@ LAB_00670ae2:
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(room))))->Entity::LoadEntityConfig();
|
||||
room->_gridEntities[0x58] = (void *)0x0;
|
||||
if (room->_gridEntities[0xc3] != (void *)0x0) {
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)))))->ANM2::Load(GHIDRA_CAST<std_string *>((GHIDRA_INT(room->_gridEntities[0xc3]) + 0x74)),1);
|
||||
ANM2::Load(GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)),
|
||||
GHIDRA_CAST<std_string *>((GHIDRA_INT(room->_gridEntities[0xc3]) + 0x74)),1);
|
||||
bVar4 = 0;
|
||||
psVar21 = (std_string *)
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((room->_gridEntities + 9)))))->Sprite::GetDefaultAnimationName();
|
||||
@@ -5637,7 +5638,8 @@ LAB_00670ae2:
|
||||
if (cVar5 != '\0') {
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(room))))->Entity::LoadEntityConfig();
|
||||
if (room->_gridEntities[0xc3] != (void *)0x0) {
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)))))->ANM2::Load(GHIDRA_CAST<std_string *>((GHIDRA_INT(room->_gridEntities[0xc3]) + 0x74)),1);
|
||||
ANM2::Load(GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)),
|
||||
GHIDRA_CAST<std_string *>((GHIDRA_INT(room->_gridEntities[0xc3]) + 0x74)),1);
|
||||
bVar4 = 0;
|
||||
psVar21 = (std_string *)
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((room->_gridEntities + 9)))))->Sprite::GetDefaultAnimationName();
|
||||
@@ -5968,7 +5970,7 @@ LAB_006717e1:
|
||||
effect = GHIDRA_CAST<Font *>((GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((room->_gridEntities + 9)))))->Sprite)::Color();
|
||||
decayFactor = Math::clamp(zeroConst,(float)pointSixConst,
|
||||
(float)room->_gridEntities[0xe0] / (float)local_8f4);
|
||||
(GHIDRA_CAST<Font *>((effect)))->Font::SetLineHeightModifier(oneConst - decayFactor);
|
||||
Font::SetLineHeightModifier(effect,oneConst - decayFactor);
|
||||
local_b04 = (void *)0x3f19999a;
|
||||
pfVar15 = GHIDRA_CAST<float *>(std)::max<float>();
|
||||
room->_gridEntities[0xd3] =
|
||||
@@ -6108,9 +6110,9 @@ LAB_006722d8:
|
||||
local_8b0 = GHIDRA_CAST<Room *>((room->_gridEntities + 0x115));
|
||||
if (room->_gridEntities[0x115] == (void *)0x0) {
|
||||
if (((room->_gridEntities[2] == (void *)0x1a) || (room->_gridEntities[2] == (void *)0x30)) &&
|
||||
(bVar4 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)))))->ANM2::IsPlaying(&s_empty), bVar4 == 0)) {
|
||||
(bVar4 = ANM2::IsPlaying(GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)),&s_empty), bVar4 == 0)) {
|
||||
pAVar22 = GHIDRA_CAST<ANM2 *>(Config)::GetPillEffects();
|
||||
psVar21 = (GHIDRA_CAST<ANM2 *>((pAVar22)))->ANM2::GetAnimation(GHIDRA_CAST<std_string *>((local_1d8 + 0x2c)));
|
||||
psVar21 = ANM2::GetAnimation(pAVar22,GHIDRA_CAST<std_string *>((local_1d8 + 0x2c)));
|
||||
ehState = 0x10;
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((room->_gridEntities + 9)))))->Sprite::Play(psVar21,0);
|
||||
ehState = -1;
|
||||
@@ -6125,7 +6127,7 @@ LAB_006722d8:
|
||||
(GHIDRA_CAST<msvc::vector *>((room->_gridEntities + 0x108)))->msvc::vector::clear(0);
|
||||
if ((room->_gridEntities[2] == (void *)0x1a) || (room->_gridEntities[2] == (void *)0x30)) {
|
||||
pAVar22 = GHIDRA_CAST<ANM2 *>(Config)::GetPillEffects();
|
||||
psVar21 = (GHIDRA_CAST<ANM2 *>((pAVar22)))->ANM2::GetAnimation(&curAnimName);
|
||||
psVar21 = ANM2::GetAnimation(pAVar22,&curAnimName);
|
||||
ehState = 0xd;
|
||||
outResult = GHIDRA_CAST<TypeDescriptor *>(0x6723d6);
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((room->_gridEntities + 9)))))->Sprite::Play(psVar21,0);
|
||||
@@ -6141,7 +6143,7 @@ LAB_006722d8:
|
||||
pVVar14 = (GHIDRA_CAST<Vector *>((pVVar14)))->Vector::__add(&local_1450,GHIDRA_CAST<Vector *>((room->_gridEntities + 0x116)));
|
||||
(GHIDRA_CAST<Vector *>((pVVar9)))->Vector::operator_assign(pVVar14);
|
||||
if (((room->_gridEntities[2] == (void *)0x1a) || (room->_gridEntities[2] == (void *)0x30))
|
||||
&& (bVar4 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)))))->ANM2::IsPlaying(&s_empty), bVar4 != 0)) {
|
||||
&& (bVar4 = ANM2::IsPlaying(GHIDRA_CAST<ANM2 *>((room->_gridEntities + 9)),&s_empty), bVar4 != 0)) {
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((room->_gridEntities + 9)))))->Sprite::Stop();
|
||||
}
|
||||
}
|
||||
@@ -6707,7 +6709,7 @@ void Entity_Tear::SetTearFlags(BitSet128 flags)
|
||||
local_30 = 4.34403e-44;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_44))) + 0x0))),"gfx/TearHalo.anm2",0x12);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearHaloANM2)))->ANM2::Load(GHIDRA_CAST<std_string *>(local_44),1);
|
||||
ANM2::Load(&this->_tearHaloANM2,GHIDRA_CAST<std_string *>(local_44),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(local_30)) {
|
||||
uVar3 = GHIDRA_INT(local_30) + 1;
|
||||
@@ -6722,7 +6724,7 @@ void Entity_Tear::SetTearFlags(BitSet128 flags)
|
||||
}
|
||||
operator_delete(freeBlock,uVar3);
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearHaloANM2)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_tearHaloANM2,s_Idle,0);
|
||||
}
|
||||
if ((this->_tearEffectANM2)._loaded != 0) goto LAB_00676b9b;
|
||||
maskedFlags = BitSet128::operator_and(GHIDRA_CAST<BitSet128 *>((local_44 + 4)),&flags,&g_tearFlagHorn);
|
||||
@@ -6739,7 +6741,7 @@ void Entity_Tear::SetTearFlags(BitSet128 flags)
|
||||
local_30 = 4.34403e-44;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_44))) + 0x0))),"gfx/LittleHornTearEffect.anm2",0x1e);
|
||||
local_14 = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Load(GHIDRA_CAST<std_string *>(local_44),1);
|
||||
ANM2::Load(&this->_tearEffectANM2,GHIDRA_CAST<std_string *>(local_44),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(local_30)) {
|
||||
uVar3 = GHIDRA_INT(local_30) + 1;
|
||||
@@ -6758,7 +6760,7 @@ void Entity_Tear::SetTearFlags(BitSet128 flags)
|
||||
if ((this->_tearEffectANM2)._layerCount != 0) {
|
||||
do {
|
||||
uVar3 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::GetLayer(layerIdx);
|
||||
layer = ANM2::GetLayer(&this->_tearEffectANM2,layerIdx);
|
||||
blendDst = 1;
|
||||
if ((uVar3 & 4) == 0) {
|
||||
blendDst = 6;
|
||||
@@ -6798,9 +6800,9 @@ LAB_00676b6a:
|
||||
((*GHIDRA_CAST<char *>((GHIDRA_INT((this->_tearEffectANM2)._animState._animData) + 0x34)) == '\0' ||
|
||||
((this->_tearEffectANM2)._animState._isPlaying != 0)))) goto LAB_00676b9b;
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::SetAnimation(s_Idle,1);
|
||||
bVar1 = ANM2::SetAnimation(&this->_tearEffectANM2,s_Idle,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_tearEffectANM2)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_tearEffectANM2)._animState);
|
||||
(this->_tearEffectANM2)._animState._isPlaying = 1;
|
||||
}
|
||||
goto LAB_00676b9b;
|
||||
@@ -6831,7 +6833,7 @@ LAB_00676b6a:
|
||||
local_30 = 4.34403e-44;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_44))) + 0x0))),"gfx/MysteriousTearEffect.anm2",0x1e);
|
||||
local_14 = 5;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Load(GHIDRA_CAST<std_string *>(local_44),1);
|
||||
ANM2::Load(&this->_tearEffectANM2,GHIDRA_CAST<std_string *>(local_44),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(local_30)) {
|
||||
uVar3 = GHIDRA_INT(local_30) + 1;
|
||||
@@ -6848,7 +6850,7 @@ LAB_00676b6a:
|
||||
}
|
||||
anmBitflags = &(this->_tearEffectANM2)._bitflags;
|
||||
*anmBitflags = *anmBitflags | 0x3000;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_tearEffectANM2,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
pbVar5 = GHIDRA_CAST<uint8_t *>(0x1);
|
||||
layer->_bitflags = 0x1000;
|
||||
goto LAB_00676426;
|
||||
@@ -6862,7 +6864,7 @@ LAB_00676b6a:
|
||||
if (bVar1 == 0) goto LAB_00676b9b;
|
||||
(GHIDRA_CAST<msvc::string *>((anm2Path._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/DarkMatterTearEffect.anm2"));
|
||||
local_14 = 7;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Load(&anm2Path,1);
|
||||
ANM2::Load(&this->_tearEffectANM2,&anm2Path,1);
|
||||
local_14 = 0xffffffff;
|
||||
(GHIDRA_CAST<msvc::string *>((anm2Path._buf)))->msvc::string::_Tidy_deallocate();
|
||||
}
|
||||
@@ -6878,7 +6880,7 @@ LAB_00676b6a:
|
||||
local_30 = 4.34403e-44;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_44))) + 0x0))),"gfx/FireMindTearEffect.anm2",0x1c);
|
||||
local_14 = 6;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Load(GHIDRA_CAST<std_string *>(local_44),1);
|
||||
ANM2::Load(&this->_tearEffectANM2,GHIDRA_CAST<std_string *>(local_44),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(local_30)) {
|
||||
uVar3 = GHIDRA_INT(local_30) + 1;
|
||||
@@ -6896,7 +6898,7 @@ LAB_00676b6a:
|
||||
}
|
||||
anmBitflags = &(this->_tearEffectANM2)._bitflags;
|
||||
*anmBitflags = *anmBitflags | 0x3000;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_tearEffectANM2,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_bitflags = 0x1000;
|
||||
}
|
||||
else {
|
||||
@@ -6911,7 +6913,7 @@ LAB_00676b6a:
|
||||
local_30 = 4.34403e-44;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_44))) + 0x0))),"gfx/JacobsLadderTearEffect.anm2",0x20);
|
||||
local_14 = 4;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Load(GHIDRA_CAST<std_string *>(local_44),1);
|
||||
ANM2::Load(&this->_tearEffectANM2,GHIDRA_CAST<std_string *>(local_44),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(local_30)) {
|
||||
uVar3 = GHIDRA_INT(local_30) + 1;
|
||||
@@ -6929,7 +6931,7 @@ LAB_00676b6a:
|
||||
pbVar5 = GHIDRA_CAST<uint8_t *>(0x0);
|
||||
LAB_00676426:
|
||||
uVar3 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::GetLayer(pbVar5);
|
||||
layer = ANM2::GetLayer(&this->_tearEffectANM2,pbVar5);
|
||||
blendDst = 1;
|
||||
if ((uVar3 & 4) == 0) {
|
||||
blendDst = 6;
|
||||
@@ -6940,7 +6942,7 @@ LAB_00676426:
|
||||
layer->_blendMode[3] = 1;
|
||||
layer->_blendMode[4] = 1;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_tearEffectANM2,s_Idle,0);
|
||||
goto LAB_00676b9b;
|
||||
}
|
||||
fStack_34 = 0.0;
|
||||
@@ -6954,7 +6956,7 @@ LAB_00676426:
|
||||
local_30 = 4.34403e-44;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_44))) + 0x0))),"gfx/HolyLightTearEffect.anm2",0x1d);
|
||||
local_14 = 3;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Load(GHIDRA_CAST<std_string *>(local_44),1);
|
||||
ANM2::Load(&this->_tearEffectANM2,GHIDRA_CAST<std_string *>(local_44),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(local_30)) {
|
||||
uVar3 = GHIDRA_INT(local_30) + 1;
|
||||
@@ -6970,7 +6972,7 @@ LAB_00676426:
|
||||
operator_delete(freeBlock,uVar3);
|
||||
}
|
||||
uVar3 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_tearEffectANM2,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
blendDst = 1;
|
||||
if ((uVar3 & 4) == 0) {
|
||||
blendDst = 6;
|
||||
@@ -7015,7 +7017,7 @@ LAB_006767dc:
|
||||
local_30 = 4.34403e-44;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_44))) + 0x0))),"gfx/LittleHornTearEffect.anm2",0x1e);
|
||||
local_14 = 2;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Load(GHIDRA_CAST<std_string *>(local_44),1);
|
||||
ANM2::Load(&this->_tearEffectANM2,GHIDRA_CAST<std_string *>(local_44),1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < GHIDRA_UINT(local_30)) {
|
||||
uVar3 = GHIDRA_INT(local_30) + 1;
|
||||
@@ -7034,7 +7036,7 @@ LAB_006767dc:
|
||||
if ((this->_tearEffectANM2)._layerCount != 0) {
|
||||
do {
|
||||
uVar3 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::GetLayer(layerIdx);
|
||||
layer = ANM2::GetLayer(&this->_tearEffectANM2,layerIdx);
|
||||
local_38 = 0.0;
|
||||
fStack_34 = 0.0;
|
||||
blendDst = 1;
|
||||
@@ -7047,7 +7049,7 @@ LAB_006767dc:
|
||||
layer->_blendMode[3] = 1;
|
||||
layer->_blendMode[4] = 1;
|
||||
local_30 = 0.0;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::GetLayer(layerIdx);
|
||||
layer = ANM2::GetLayer(&this->_tearEffectANM2,layerIdx);
|
||||
if (&layer->_color != GHIDRA_CAST<ColorMod *>(local_58)) {
|
||||
(layer->_color)._tint[0] = 1.0;
|
||||
(layer->_color)._tint[1] = 0.7;
|
||||
@@ -7089,9 +7091,9 @@ LAB_006767e5:
|
||||
goto LAB_00676b9b;
|
||||
}
|
||||
}
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::SetAnimation(s_Idle,1);
|
||||
bVar1 = ANM2::SetAnimation(&this->_tearEffectANM2,s_Idle,1);
|
||||
if (bVar1 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_tearEffectANM2)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(this->_tearEffectANM2)._animState);
|
||||
(this->_tearEffectANM2)._animState._isPlaying = 1;
|
||||
}
|
||||
LAB_00676b9b:
|
||||
@@ -7353,7 +7355,7 @@ void Entity_Tear::apply_death_flag_effects(Entity *target)
|
||||
operator_delete(ptr,uVar4);
|
||||
bVar3 = extraout_CL_00;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((&childTear->_sprite)))->ANM2::LoadGraphics(bVar3);
|
||||
ANM2::LoadGraphics(&childTear->_sprite,bVar3);
|
||||
}
|
||||
local_60 = GHIDRA_CAST<Entity_Tear *>(this->_height);
|
||||
childTear->_height = (float)local_60;
|
||||
@@ -7575,7 +7577,7 @@ void Entity_Tear::ResetSpriteScale()
|
||||
format = "RegularTear%d";
|
||||
}
|
||||
sprintf_s(animName,0x20,GHIDRA_CAST<uint8_t *>(format));
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(animName,0);
|
||||
ANM2::Play(&this->_sprite,animName,0);
|
||||
this->_scaleAnimNum = scaleAnimBase + uVar2;
|
||||
}
|
||||
if (GHIDRA_INT(uVar2) < 0xd) {
|
||||
@@ -7600,7 +7602,7 @@ void Entity_Tear::ResetSpriteScale()
|
||||
break;
|
||||
default:
|
||||
if (this->_scaleAnimNum != scaleAnimBase) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
this->_scaleAnimNum = scaleAnimBase;
|
||||
}
|
||||
case 0x28:
|
||||
@@ -7611,7 +7613,7 @@ switchD_006777c1_caseD_28:
|
||||
case 6:
|
||||
case 7:
|
||||
if (this->_scaleAnimNum != scaleAnimBase) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("MoveHori"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("MoveHori"),0);
|
||||
this->_scaleAnimNum = scaleAnimBase;
|
||||
}
|
||||
local_4c = this->_fScale / 2.75;
|
||||
@@ -7636,7 +7638,7 @@ switchD_006777c1_caseD_28:
|
||||
sprintf(animName,GHIDRA_CAST<uint8_t *>("Rotate%d"));
|
||||
if (((this->_sprite)._animState._animData == (void *)0x0) ||
|
||||
((this->_sprite)._animState._isPlaying == 0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(animName,0);
|
||||
ANM2::Play(&this->_sprite,animName,0);
|
||||
animData = (this->_sprite)._animState._animData;
|
||||
if ((animData == (void *)0x0) || (uVar2 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(animData) + 0x30)), uVar2 == 0)) {
|
||||
startFrame = 0;
|
||||
@@ -7647,11 +7649,11 @@ switchD_006777c1_caseD_28:
|
||||
animData = (this->_sprite)._animState._animData;
|
||||
}
|
||||
if (animData != (void *)0x0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat((float)GHIDRA_INT(startFrame));
|
||||
AnimationState::SetFrameFloat(&(this->_sprite)._animState,(float)GHIDRA_INT(startFrame));
|
||||
}
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::SetAnimation(animName,0);
|
||||
ANM2::SetAnimation(&this->_sprite,animName,0);
|
||||
}
|
||||
fVar3 = local_4c;
|
||||
if (this->_variant == 8) {
|
||||
@@ -7661,16 +7663,16 @@ switchD_006777c1_caseD_28:
|
||||
case 9:
|
||||
if (this->_dead == 0) {
|
||||
if (this->_scaleAnimNum != scaleAnimBase) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Rotate"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Rotate"),0);
|
||||
this->_scaleAnimNum = scaleAnimBase;
|
||||
}
|
||||
(this->_sprite)._flipX = (this->_velocity).x <= 0.0 && (this->_velocity).x != 0.0;
|
||||
}
|
||||
goto switchD_006777c1_caseD_28;
|
||||
case 0x2e:
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(GHIDRA_CAST<uint8_t *>("Flickering"),0);
|
||||
ANM2::Play(&this->_sprite,GHIDRA_CAST<uint8_t *>("Flickering"),0);
|
||||
uVar2 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
iVar1 = 1;
|
||||
if ((uVar2 & 4) == 0) {
|
||||
iVar1 = 6;
|
||||
@@ -7683,7 +7685,7 @@ switchD_006777c1_caseD_28:
|
||||
goto switchD_006777c1_caseD_28;
|
||||
case 0x2f:
|
||||
case 0x31:
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_sprite,s_Idle,0);
|
||||
local_4c = this->_fScale;
|
||||
fVar3 = local_4c;
|
||||
break;
|
||||
@@ -7699,12 +7701,12 @@ switchD_006777c1_caseD_28:
|
||||
this->_scaleAnimNum = uVar2 + scaleAnimBase;
|
||||
sprintf(animName,GHIDRA_CAST<uint8_t *>("Rotate%d"));
|
||||
if (this->_scaleAnimNum / 100 == GHIDRA_INT(local_48) / 100) {
|
||||
iVar1 = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetFrame();
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(animName,0);
|
||||
iVar1 = ANM2::GetFrame(&this->_sprite);
|
||||
ANM2::Play(&this->_sprite,animName,0);
|
||||
if (iVar1 < 0) goto LAB_00677c46;
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Play(animName,0);
|
||||
ANM2::Play(&this->_sprite,animName,0);
|
||||
LAB_00677c46:
|
||||
animData = (this->_sprite)._animState._animData;
|
||||
if (animData == (void *)0x0) {
|
||||
@@ -7716,7 +7718,7 @@ LAB_00677c46:
|
||||
iVar1 = Isaac::Random(iVar1);
|
||||
}
|
||||
if (((this->_sprite)._animState._animData != (void *)0x0) &&
|
||||
((GHIDRA_CAST<AnimationState *>((&(this->_sprite)._animState)))->AnimationState::SetFrameFloat((float)iVar1),
|
||||
(AnimationState::SetFrameFloat(&(this->_sprite)._animState,(float)iVar1),
|
||||
(this->_sprite)._animState._animData != (void *)0x0)) {
|
||||
(this->_sprite)._animState._isPlaying = 0;
|
||||
}
|
||||
@@ -7752,7 +7754,7 @@ LAB_00677c46:
|
||||
do {
|
||||
local_40 = fVar3 * g_vectorOne.x * fVar4;
|
||||
layerSizeY = fVar3 * g_vectorOne.y * fVar5;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(layerIndex);
|
||||
layer = ANM2::GetLayer(&this->_sprite,layerIndex);
|
||||
layerIndex = layerIndex + 1;
|
||||
(layer->_size).x = local_40;
|
||||
(layer->_size).y = layerSizeY;
|
||||
@@ -7768,7 +7770,7 @@ LAB_00677c46:
|
||||
do {
|
||||
local_40 = this->_fScale * g_vectorOne.y * local_48;
|
||||
local_4c = this->_fScale * g_vectorOne.x * sizeMultiX;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(layerIndex);
|
||||
layer = ANM2::GetLayer(&this->_sprite,layerIndex);
|
||||
layerIndex = layerIndex + 1;
|
||||
(layer->_size).x = local_4c;
|
||||
(layer->_size).y = local_40;
|
||||
@@ -7785,24 +7787,24 @@ LAB_00677c46:
|
||||
(this->_tearHaloANM2)._scale.y = fVar3 * fVar5;
|
||||
(this->_tearHaloANM2)._scale.x = fVar3 * fVar4;
|
||||
if ((this->_tearHaloANM2)._loaded != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_tearHaloANM2)._animState)))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_tearHaloANM2)._overlayAnimState)))->AnimationState::Update();
|
||||
AnimationState::Update(&(this->_tearHaloANM2)._animState);
|
||||
AnimationState::Update(&(this->_tearHaloANM2)._overlayAnimState);
|
||||
}
|
||||
}
|
||||
if ((this->_tearEffectANM2)._loaded != 0) {
|
||||
fVar3 = this->_fScale * 0.45;
|
||||
(this->_tearEffectANM2)._scale.y = fVar3 * local_48;
|
||||
(this->_tearEffectANM2)._scale.x = fVar3 * sizeMultiX;
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_tearEffectANM2)._animState)))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_tearEffectANM2)._overlayAnimState)))->AnimationState::Update();
|
||||
AnimationState::Update(&(this->_tearEffectANM2)._animState);
|
||||
AnimationState::Update(&(this->_tearEffectANM2)._overlayAnimState);
|
||||
}
|
||||
if (this->_deadEyeIntensity != 0.0) {
|
||||
fVar3 = this->_fScale * 0.45;
|
||||
(this->_deadEyeANM2)._scale.y = fVar3 * local_48;
|
||||
(this->_deadEyeANM2)._scale.x = fVar3 * sizeMultiX;
|
||||
if ((this->_deadEyeANM2)._loaded != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_deadEyeANM2)._animState)))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_deadEyeANM2)._overlayAnimState)))->AnimationState::Update();
|
||||
AnimationState::Update(&(this->_deadEyeANM2)._animState);
|
||||
AnimationState::Update(&(this->_deadEyeANM2)._overlayAnimState);
|
||||
}
|
||||
}
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::SetSize(*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this->_config) + 0x38)) * this->_fScale,
|
||||
@@ -8253,11 +8255,11 @@ void Entity_Tear::Render(Vector *offset)
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&(this->_tearFlags)._l) + 4)) & (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(g_tearFlagGlow._l)) + 0x4)))) != 0) ||
|
||||
((GHIDRA_UINT((this->_tearFlags)._h) & GHIDRA_UINT(g_tearFlagGlow._h)) != 0 ||
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&(this->_tearFlags)._h) + 4)) & (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(g_tearFlagGlow._h)) + 0x4)))) != 0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearHaloANM2)))->ANM2::Render(position,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_tearHaloANM2,position,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
if (((this->_tearEffectANM2)._loaded != 0) &&
|
||||
((GHIDRA_UINT((this->_tearEffectANM2)._bitflags) >> 0xd & 1) != 0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Render(position,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_tearEffectANM2,position,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
spawnerPlayer =
|
||||
(Entity_Player *)
|
||||
@@ -8314,10 +8316,10 @@ void Entity_Tear::Render(Vector *offset)
|
||||
}
|
||||
if (((this->_tearEffectANM2)._loaded != 0) &&
|
||||
((GHIDRA_UINT((this->_tearEffectANM2)._bitflags) >> 0xd & 1) == 0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_tearEffectANM2)))->ANM2::Render(position,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_tearEffectANM2,position,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
if (this->_deadEyeIntensity != 0.0) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_deadEyeANM2)))->ANM2::Render(position,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_deadEyeANM2,position,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
FUN_00862b80(this,offset);
|
||||
}
|
||||
@@ -8642,7 +8644,7 @@ void Entity_Tear::SetDeadEyeIntensity(float intensity)
|
||||
anm2Path._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(anm2Path._buf))) + 0x0))),"gfx/DeadEyeTearEffect.anm2",0x1b);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_deadEyeANM2)))->ANM2::Load(&anm2Path,1);
|
||||
ANM2::Load(&this->_deadEyeANM2,&anm2Path,1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < anm2Path._capacity) {
|
||||
uVar1 = anm2Path._capacity + 1;
|
||||
@@ -8658,7 +8660,7 @@ void Entity_Tear::SetDeadEyeIntensity(float intensity)
|
||||
operator_delete(ptr,uVar1);
|
||||
}
|
||||
uVar1 = g_graphicsManager_flags;
|
||||
effectLayer = (GHIDRA_CAST<ANM2 *>((&this->_deadEyeANM2)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
effectLayer = ANM2::GetLayer(&this->_deadEyeANM2,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
blendMode = 1;
|
||||
if ((uVar1 & 4) == 0) {
|
||||
blendMode = 6;
|
||||
@@ -8668,7 +8670,7 @@ void Entity_Tear::SetDeadEyeIntensity(float intensity)
|
||||
effectLayer->_blendMode[2] = 1;
|
||||
effectLayer->_blendMode[3] = 1;
|
||||
effectLayer->_blendMode[4] = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_deadEyeANM2)))->ANM2::Play(s_Idle,0);
|
||||
ANM2::Play(&this->_deadEyeANM2,s_Idle,0);
|
||||
effectColor = &(this->_deadEyeANM2)._color;
|
||||
if (effectColor != GHIDRA_CAST<ColorMod *>(local_68)) {
|
||||
(this->_deadEyeANM2)._color._colorize[0] = 0.0;
|
||||
@@ -8803,7 +8805,7 @@ void Entity_Tear::ChangeVariant(int variant)
|
||||
savedScale = this->_fScale;
|
||||
this->LoadEntityConfig(local_24);
|
||||
if (this->_config != (void *)0x0) {
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(GHIDRA_CAST<std_string *>((GHIDRA_INT(this->_config) + 0x74)),1);
|
||||
ANM2::Load(&this->_sprite,GHIDRA_CAST<std_string *>((GHIDRA_INT(this->_config) + 0x74)),1);
|
||||
if (this->_variant == 0xd) {
|
||||
isGfuelSeed = (GHIDRA_CAST<Seeds *>((&g_game->_seedEffects)))->Seeds::HasSeedEffect(0x4f);
|
||||
if (isGfuelSeed != 0) {
|
||||
@@ -8818,7 +8820,7 @@ void Entity_Tear::ChangeVariant(int variant)
|
||||
bulletAnmPath._capacity = 0x2f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(bulletAnmPath._buf))) + 0x0))),"gfx/promo/gfuel/bullet tear.anm2",0x21);
|
||||
local_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(&bulletAnmPath,1);
|
||||
ANM2::Load(&this->_sprite,&bulletAnmPath,1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < bulletAnmPath._capacity) {
|
||||
uVar1 = bulletAnmPath._capacity + 1;
|
||||
@@ -8834,7 +8836,7 @@ void Entity_Tear::ChangeVariant(int variant)
|
||||
operator_delete(freeBlock,uVar1);
|
||||
}
|
||||
uVar1 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
blendSrc = 1;
|
||||
if ((uVar1 & 4) == 0) {
|
||||
blendSrc = 6;
|
||||
@@ -8860,7 +8862,7 @@ void Entity_Tear::ChangeVariant(int variant)
|
||||
missileAnmPath._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(missileAnmPath._buf))) + 0x0))),"gfx/promo/gfuel/missile.anm2",0x1d);
|
||||
local_14 = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::Load(&missileAnmPath,1);
|
||||
ANM2::Load(&this->_sprite,&missileAnmPath,1);
|
||||
local_14 = 0xffffffff;
|
||||
if (0xf < missileAnmPath._capacity) {
|
||||
uVar1 = missileAnmPath._capacity + 1;
|
||||
@@ -8879,7 +8881,7 @@ void Entity_Tear::ChangeVariant(int variant)
|
||||
missileAnmPath._size = 0;
|
||||
missileAnmPath._capacity = 0xf;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(missileAnmPath._buf)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(missileAnmPath._buf)) + 0x0))) & 0xffffff00;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
blendSrc = 1;
|
||||
if ((uVar1 & 4) == 0) {
|
||||
blendSrc = 6;
|
||||
@@ -8889,7 +8891,7 @@ void Entity_Tear::ChangeVariant(int variant)
|
||||
layer->_blendMode[2] = 1;
|
||||
layer->_blendMode[3] = 1;
|
||||
layer->_blendMode[4] = 1;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer = ANM2::GetLayer(&this->_sprite,GHIDRA_CAST<uint8_t *>(0x1));
|
||||
layer->_bitflags = layer->_bitflags | 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user