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
+88
-87
@@ -778,9 +778,9 @@ Room * Room::constructor()
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1bc0)))) = 0;
|
||||
(GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<Backdrop *>(&this->_backdrop))))->Backdrop::constructor();
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 6;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_lightSprite)))->ANM2::constructor();
|
||||
ANM2::constructor(&this->_lightSprite);
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 7;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f54)))))))->ANM2::constructor();
|
||||
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f54)))));
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 8;
|
||||
shopItemDeque = &this->_shopItemDeque;
|
||||
shopItemDeque->_proxy = (void *)0x0;
|
||||
@@ -806,7 +806,7 @@ Room * Room::constructor()
|
||||
entriesLeft = entriesLeft + -1;
|
||||
puVar2 = puVar2 + 7;
|
||||
} while (entriesLeft != 0);
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))))))->ANM2::constructor();
|
||||
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))));
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 10;
|
||||
gridIndexSet = this->_pendingGridRemovals;
|
||||
gridIndexSet[0] = 0;
|
||||
@@ -902,12 +902,12 @@ Room * Room::constructor()
|
||||
(this->_waterCurrent).y = 0.0;
|
||||
(this->_waterCurrent).x = 0.0;
|
||||
(this->_railManager)._room = this;
|
||||
(GHIDRA_CAST<ANM2 *>((&(this->_railManager)._sprite)))->ANM2::constructor();
|
||||
ANM2::constructor(&(this->_railManager)._sprite);
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x11;
|
||||
_eh_vector_constructor_iterator_(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7744))),4,8,FUN_0042a020,FUN_00579700);
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x12;
|
||||
*GHIDRA_CAST<Room **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x776c)))) = this;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7770)))))))->ANM2::constructor();
|
||||
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7770)))));
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7884))) = 0;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7888)))) = 0;
|
||||
this->_beastBlastForce = 0.0;
|
||||
@@ -1015,7 +1015,7 @@ Room::~Room()
|
||||
FUN_007ea0c0(this->_Camera);
|
||||
}
|
||||
local_8 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7770)))))))->ANM2::Reset();
|
||||
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7770)))));
|
||||
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x77c8))));
|
||||
if (iVar3 != 0) {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
@@ -1086,7 +1086,7 @@ Room::~Room()
|
||||
_eh_vector_destructor_iterator_(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7744))),4,8,FUN_00579700);
|
||||
railSprite = &(this->_railManager)._sprite;
|
||||
local_8 = 5;
|
||||
(GHIDRA_CAST<ANM2 *>((railSprite)))->ANM2::Reset();
|
||||
ANM2::Reset(railSprite);
|
||||
freeBlock = (this->_railManager)._sprite._overlayAnimState._layerFrames;
|
||||
if (freeBlock != (void *)0x0) {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
@@ -1169,7 +1169,7 @@ Room::~Room()
|
||||
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>(this->_pendingGridRemovals) + 4));
|
||||
operator_delete(*(void **)gridIndexSet,0x14);
|
||||
local_8 = 10;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))))))->ANM2::Reset();
|
||||
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))));
|
||||
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7158))));
|
||||
if (iVar3 != 0) {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
@@ -1241,7 +1241,7 @@ Room::~Room()
|
||||
(this->_shopItemDeque)._proxy = (void *)0x0;
|
||||
operator_delete(freeBlock,8);
|
||||
local_8 = 0xf;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f54)))))))->ANM2::Reset();
|
||||
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f54)))));
|
||||
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6fac))));
|
||||
if (iVar3 != 0) {
|
||||
if (g_mainHeap == (void *)0x0) {
|
||||
@@ -1263,13 +1263,13 @@ Room::~Room()
|
||||
tracked_alloc(1,*(void **)&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6fb0))),0);
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6fb0)))) = 0;
|
||||
}
|
||||
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f84)))))))->AnimationState::~AnimationState();
|
||||
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f84)))));
|
||||
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f6c))))))->msvc::string::_Tidy_deallocate();
|
||||
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x6f54))))))->msvc::string::_Tidy_deallocate();
|
||||
local_8 = 0x12;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_lightSprite)))->ANM2::Reset();
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_lightSprite)._overlayAnimState)))->AnimationState::~AnimationState();
|
||||
(GHIDRA_CAST<AnimationState *>((&(this->_lightSprite)._animState)))->AnimationState::~AnimationState();
|
||||
ANM2::Reset(&this->_lightSprite);
|
||||
AnimationState::~AnimationState(&(this->_lightSprite)._overlayAnimState);
|
||||
AnimationState::~AnimationState(&(this->_lightSprite)._animState);
|
||||
(GHIDRA_CAST<msvc::string *>(((this->_lightSprite)._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
|
||||
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&this->_lightSprite))))->msvc::string::_Tidy_deallocate();
|
||||
(GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<Backdrop *>(&this->_backdrop))))->Backdrop::destructor();
|
||||
@@ -2868,7 +2868,7 @@ LAB_007ed9e7:
|
||||
pRVar9 = room;
|
||||
}
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((iVar5 + 0x5d0)))))->ANM2::Reset();
|
||||
ANM2::Reset(GHIDRA_CAST<ANM2 *>((iVar5 + 0x5d0)));
|
||||
}
|
||||
fVar13 = gridIndexLocal;
|
||||
}
|
||||
@@ -3684,9 +3684,9 @@ void Room::MakeDoor(int slot)
|
||||
(GHIDRA_CAST<GridEntity *>((newDoor)))->GridEntity::GridEntity();
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 3;
|
||||
*GHIDRA_CAST<uint8_t ***>(newDoor) = IsaacRepentancePlus::GridEntity_Door::vftable;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(newDoor[1])) + 0x14)))))))->ANM2::constructor();
|
||||
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(newDoor[1])) + 0x14)))));
|
||||
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),4);
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((newDoor[1]._sprite._championColor._colorize + 1)))))->ANM2::constructor();
|
||||
ANM2::constructor(GHIDRA_CAST<ANM2 *>((newDoor[1]._sprite._championColor._colorize + 1)));
|
||||
newDoor[2]._sprite._color._colorize[1] = 0.0;
|
||||
newDoor[2]._sprite._color._offset[1] = 0.0;
|
||||
newDoor[2]._sprite._color._offset[2] = 2.10195e-44;
|
||||
@@ -5237,7 +5237,7 @@ LAB_007f1a86:
|
||||
local_40._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(local_40._buf))) + 0x0))),"gfx/Effect_SatanRadial.anm2",0x1c);
|
||||
local_14 = 2;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))))))->ANM2::Load(&local_40,0);
|
||||
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))),&local_40,0);
|
||||
local_14 = -1;
|
||||
bVar2 = extraout_CL;
|
||||
if (0xf < local_40._capacity) {
|
||||
@@ -5279,7 +5279,7 @@ LAB_007f1a86:
|
||||
bVar2 = extraout_CL_02;
|
||||
}
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))))))->ANM2::LoadGraphics(bVar2);
|
||||
ANM2::LoadGraphics(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x7100)))),bVar2);
|
||||
uVar9 = extraout_ECX_03;
|
||||
LAB_007f1c03:
|
||||
KAGE::SmartPointer<RenderTargetBase>::reset(uVar9);
|
||||
@@ -5972,7 +5972,7 @@ void Room::Init(RoomConfig_Room *config, RoomDescriptor *descriptor)
|
||||
lightGradientPath._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(lightGradientPath._buf))) + 0x0))),"gfx/LightGradient.anm2",0x17);
|
||||
uStack_14 = 0;
|
||||
(GHIDRA_CAST<ANM2 *>((pickup)))->ANM2::Load(&lightGradientPath,1);
|
||||
ANM2::Load(pickup,&lightGradientPath,1);
|
||||
uStack_14 = 0xffffffff;
|
||||
if (0xf < lightGradientPath._capacity) {
|
||||
uVar7 = lightGradientPath._capacity + 1;
|
||||
@@ -5990,9 +5990,9 @@ void Room::Init(RoomConfig_Room *config, RoomDescriptor *descriptor)
|
||||
lightGradientPath._size = 0;
|
||||
lightGradientPath._capacity = 0xf;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(lightGradientPath._buf)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(lightGradientPath._buf)) + 0x0))) & 0xffffff00;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((pickup)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(pickup,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_minFilterMode = 1;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((pickup)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(pickup,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
pGStack_54c = GHIDRA_CAST<Game *>(&(currentRoom->_lightSprite)._animDefaultName);
|
||||
layer->_magFilterMode = 1;
|
||||
if (0xf < (currentRoom->_lightSprite)._animDefaultName._capacity) {
|
||||
@@ -6001,9 +6001,9 @@ void Room::Init(RoomConfig_Room *config, RoomDescriptor *descriptor)
|
||||
pbVar24 = (currentRoom->_lightSprite)._animState._animData;
|
||||
if (pbVar24 == GHIDRA_CAST<uint8_t *>(0x0)) {
|
||||
LAB_007f2c5c:
|
||||
bVar5 = (GHIDRA_CAST<ANM2 *>((pickup)))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(pGStack_54c),1);
|
||||
bVar5 = ANM2::SetAnimation(pickup,GHIDRA_CAST<uint8_t *>(pGStack_54c),1);
|
||||
if (bVar5 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((&(currentRoom->_lightSprite)._animState)))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(&(currentRoom->_lightSprite)._animState);
|
||||
(currentRoom->_lightSprite)._animState._isPlaying = 1;
|
||||
}
|
||||
}
|
||||
@@ -6035,7 +6035,7 @@ LAB_007f2c49:
|
||||
((*GHIDRA_CAST<char *>((GHIDRA_INT((currentRoom->_lightSprite)._animState._animData) + 0x34)) != '\0' &&
|
||||
((currentRoom->_lightSprite)._animState._isPlaying == 0)))) goto LAB_007f2c5c;
|
||||
}
|
||||
layer = (GHIDRA_CAST<ANM2 *>((¤tRoom->_lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(¤tRoom->_lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_blendMode[0] = DAT_00c354ac;
|
||||
layer->_blendMode[1] = DAT_00c354b0;
|
||||
layer->_blendMode[2] = DAT_00c354b4;
|
||||
@@ -6055,7 +6055,7 @@ LAB_007f2c49:
|
||||
spotLightPath._capacity = 0x1f;
|
||||
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(spotLightPath._buf))) + 0x0))),"gfx/SpotLight.anm2",0x13);
|
||||
uStack_14 = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(puVar12))))->ANM2::Load(&spotLightPath,1);
|
||||
ANM2::Load(GHIDRA_CAST<ANM2 *>(puVar12),&spotLightPath,1);
|
||||
uStack_14 = 0xffffffff;
|
||||
if (0xf < spotLightPath._capacity) {
|
||||
uVar7 = spotLightPath._capacity + 1;
|
||||
@@ -6073,9 +6073,9 @@ LAB_007f2c49:
|
||||
spotLightPath._size = 0;
|
||||
spotLightPath._capacity = 0xf;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(spotLightPath._buf)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(spotLightPath._buf)) + 0x0))) & 0xffffff00;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(puVar12))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(puVar12),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_minFilterMode = 1;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(puVar12))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(puVar12),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
pGStack_54c = GHIDRA_CAST<Game *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((currentRoom)) + 0x6f6c))));
|
||||
layer->_magFilterMode = 1;
|
||||
if (0xf < *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((currentRoom)) + 0x6f80))))) {
|
||||
@@ -6110,9 +6110,9 @@ LAB_007f2e25:
|
||||
((*GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((currentRoom)) + 0x6f88)))) + 0x34)) == '\0' ||
|
||||
((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((currentRoom)) + 0x6f98))) != '\0')))) goto LAB_007f2e57;
|
||||
}
|
||||
bVar5 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(puVar12))))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>(pGStack_54c),1);
|
||||
bVar5 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(puVar12),GHIDRA_CAST<uint8_t *>(pGStack_54c),1);
|
||||
if (bVar5 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((currentRoom)) + 0x6f84)))))))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((currentRoom)) + 0x6f84)))));
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((currentRoom)) + 0x6f98))) = 1;
|
||||
}
|
||||
}
|
||||
@@ -13256,7 +13256,7 @@ code_r0x008009bf:
|
||||
if (*GHIDRA_CAST<int *>((iVar3 + 0x2c)) == 0) {
|
||||
fVar9 = fVar9 - *GHIDRA_CAST<float *>((iVar3 + 0x33c));
|
||||
fVar8 = fVar8 - *GHIDRA_CAST<float *>((iVar3 + 0x340));
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((iVar3 + 0x48)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((iVar3 + 0x48)),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
fVar8 = sqrtf(fVar8 * fVar8 + fVar9 * fVar9);
|
||||
fVar9 = 1.0 - fVar8 / 1500.0;
|
||||
fVar8 = 0.0;
|
||||
@@ -14965,8 +14965,8 @@ LAB_0080377c:
|
||||
(GHIDRA_CAST<EntityList *>((GHIDRA_CAST<EntityList *>(&(GHIDRA_CAST<Level *>(this))->_roomList[0x19].Dimension))))->EntityList::Update(0);
|
||||
(GHIDRA_CAST<Camera *>((GHIDRA_CAST<Camera *>(&(GHIDRA_CAST<Level *>(this))->_roomList[0x1e].SavedEntities))))->Camera::Update(0);
|
||||
if (*GHIDRA_CAST<char *>((GHIDRA_INT((GHIDRA_CAST<Level *>(this))->_roomList[0x28]._doors) + 0x1d)) != '\0') {
|
||||
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(GHIDRA_CAST<Level *>(this))->_roomList[0x27].AllowedDoors))))->AnimationState::Update();
|
||||
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(((GHIDRA_CAST<Level *>(this))->_roomList[0x27]._doors + 7)))))->AnimationState::Update();
|
||||
AnimationState::Update(GHIDRA_CAST<AnimationState *>(&(GHIDRA_CAST<Level *>(this))->_roomList[0x27].AllowedDoors));
|
||||
AnimationState::Update(GHIDRA_CAST<AnimationState *>(((GHIDRA_CAST<Level *>(this))->_roomList[0x27]._doors + 7)));
|
||||
}
|
||||
if ((GHIDRA_CAST<Level *>(this))->_roomList[0x28].Flags == 0x1a) {
|
||||
pbVar25 = GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<Level *>(this))->_roomList[0x27]._doors[0]);
|
||||
@@ -14996,9 +14996,9 @@ LAB_00803ee5:
|
||||
((*GHIDRA_CAST<char *>(((GHIDRA_CAST<Level *>(this))->_roomList[0x27]._doors[0] + 0x34)) == '\0' ||
|
||||
((char)(GHIDRA_CAST<Level *>(this))->_roomList[0x27]._doors[4] != '\0')))) goto LAB_00803f16;
|
||||
}
|
||||
bVar15 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((GHIDRA_CAST<Level *>(this))->_roomList[0x26])) + 0xa0)))))))->ANM2::SetAnimation(s_Idle,1);
|
||||
bVar15 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((GHIDRA_CAST<Level *>(this))->_roomList[0x26])) + 0xa0)))),s_Idle,1);
|
||||
if (bVar15 != 0) {
|
||||
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>(&(GHIDRA_CAST<Level *>(this))->_roomList[0x27].AllowedDoors))))->AnimationState::Rewind();
|
||||
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>(&(GHIDRA_CAST<Level *>(this))->_roomList[0x27].AllowedDoors));
|
||||
*GHIDRA_CAST<uint8_t *>(((GHIDRA_CAST<Level *>(this))->_roomList[0x27]._doors + 4)) = 1;
|
||||
}
|
||||
}
|
||||
@@ -16459,7 +16459,7 @@ void Room::render_player_light(Entity_Player *player, Vector *offset)
|
||||
}
|
||||
else {
|
||||
if ((*GHIDRA_CAST<int *>((minecart + 0x7c)) == 0) ||
|
||||
(pVVar6 = (GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((minecart + 0x78)))))->AnimationState::GetNullFrameById(0),
|
||||
(pVVar6 = AnimationState::GetNullFrameById(GHIDRA_CAST<AnimationState *>((minecart + 0x78)),0),
|
||||
pVVar6 == GHIDRA_CAST<Vector *>(0x0))) {
|
||||
pVVar6 = &g_vectorZero;
|
||||
}
|
||||
@@ -16490,7 +16490,7 @@ void Room::render_player_light(Entity_Player *player, Vector *offset)
|
||||
uVar7 = g_graphicsManager_flags;
|
||||
if (bVar5 != 0) {
|
||||
lightSprite = &this->_lightSprite;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
color._tint[0] = 0.4;
|
||||
color._colorize[0] = 0.0;
|
||||
color._colorize[1] = 0.0;
|
||||
@@ -16516,9 +16516,9 @@ void Room::render_player_light(Entity_Player *player, Vector *offset)
|
||||
fVar8 = fVar9 * g_vectorOne.x;
|
||||
(local_1c->_lightSprite)._scale.y = fVar9 * g_vectorOne.y;
|
||||
(local_1c->_lightSprite)._scale.x = fVar8;
|
||||
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(lightSprite,&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
uVar7 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
minecart = 1;
|
||||
offset = GHIDRA_CAST<Vector *>(renderPos.y);
|
||||
if ((uVar7 & 4) == 0) {
|
||||
@@ -16535,7 +16535,7 @@ void Room::render_player_light(Entity_Player *player, Vector *offset)
|
||||
uVar7 = g_graphicsManager_flags;
|
||||
if (player->_babySkin == 0x42) {
|
||||
lightSprite = &this->_lightSprite;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
color._offset[0] = 0.0;
|
||||
color._offset[1] = 0.0;
|
||||
minecart = 1;
|
||||
@@ -16560,9 +16560,9 @@ void Room::render_player_light(Entity_Player *player, Vector *offset)
|
||||
fVar8 = g_vectorOne.y * 2.0;
|
||||
(local_1c->_lightSprite)._scale.x = g_vectorOne.x * 2.0;
|
||||
(local_1c->_lightSprite)._scale.y = fVar8;
|
||||
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(lightSprite,&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
uVar7 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
minecart = 1;
|
||||
offset = GHIDRA_CAST<Vector *>(renderPos.y);
|
||||
if ((uVar7 & 4) == 0) {
|
||||
@@ -16746,7 +16746,7 @@ void Room::render_player_light(Entity_Player *player, Vector *offset)
|
||||
(this->_lightSprite)._scale.x = g_vectorOne.x * 0.5;
|
||||
(this->_lightSprite)._scale.y = fVar8;
|
||||
}
|
||||
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(lightSprite,&renderPos,&g_vectorZero,&g_vectorZero);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -16879,7 +16879,7 @@ LAB_0080cac5:
|
||||
dVar6 = floor((double)local_20.y);
|
||||
local_20.x = local_18.y + *param_3;
|
||||
local_20.y = (float)dVar6 / (float)local_10 + param_3[1];
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(&this->_lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
game = g_game;
|
||||
layer->_blendMode[0] = DAT_00c35b6c;
|
||||
layer->_blendMode[1] = DAT_00c35b70;
|
||||
@@ -16902,8 +16902,8 @@ LAB_0080cac5:
|
||||
fVar5 = g_vectorOne.y * 0.8;
|
||||
(this->_lightSprite)._scale.x = g_vectorOne.x * 0.8;
|
||||
(this->_lightSprite)._scale.y = fVar5;
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_lightSprite)))->ANM2::Render(&local_20,&g_vectorZero,&g_vectorZero);
|
||||
layer = (GHIDRA_CAST<ANM2 *>((&this->_lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
ANM2::Render(&this->_lightSprite,&local_20,&g_vectorZero,&g_vectorZero);
|
||||
layer = ANM2::GetLayer(&this->_lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_blendMode[0] = DAT_00c354ac;
|
||||
layer->_blendMode[1] = DAT_00c354b0;
|
||||
layer->_blendMode[2] = DAT_00c354b4;
|
||||
@@ -16960,8 +16960,8 @@ LAB_0080cac5:
|
||||
if (iVar2 == 1) {
|
||||
return;
|
||||
}
|
||||
isLastBoss = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::IsPlaying(GHIDRA_CAST<uint8_t *>("KeyOpen"));
|
||||
if ((isLastBoss != 0) && (frame = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::GetFrame(), frame < 0x13)) {
|
||||
isLastBoss = ANM2::IsPlaying(¶m_2->_sprite,GHIDRA_CAST<uint8_t *>("KeyOpen"));
|
||||
if ((isLastBoss != 0) && (frame = ANM2::GetFrame(¶m_2->_sprite), frame < 0x13)) {
|
||||
return;
|
||||
}
|
||||
if (iVar2 != 8) {
|
||||
@@ -17031,15 +17031,15 @@ LAB_0080cac5:
|
||||
fVar5 = (float)dVar6;
|
||||
}
|
||||
else {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::GetLayer(&DAT_00000005);
|
||||
layer = ANM2::GetLayer(¶m_2->_sprite,&DAT_00000005);
|
||||
if (layer->_visible == 0) {
|
||||
return;
|
||||
}
|
||||
layer = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::GetLayer(&DAT_00000005);
|
||||
layer = ANM2::GetLayer(¶m_2->_sprite,&DAT_00000005);
|
||||
if ((layer->_color)._tint[3] <= 0.0) {
|
||||
return;
|
||||
}
|
||||
layer = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::GetLayer(&DAT_00000005);
|
||||
layer = ANM2::GetLayer(¶m_2->_sprite,&DAT_00000005);
|
||||
(GHIDRA_CAST<Color *>((&local_68)))->Color::Color(1.0,0.95,0.9,(layer->_color)._tint[3]);
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_lightSprite))))->Sprite::SetColor(color_06);
|
||||
(this->_lightSprite)._scale.x = g_vectorOne.x;
|
||||
@@ -17075,11 +17075,11 @@ LAB_0080cac5:
|
||||
}
|
||||
}
|
||||
else {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x3));
|
||||
layer = ANM2::GetLayer(¶m_2->_sprite,GHIDRA_CAST<uint8_t *>(0x3));
|
||||
if (layer->_visible == 0) {
|
||||
return;
|
||||
}
|
||||
layer = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x3));
|
||||
layer = ANM2::GetLayer(¶m_2->_sprite,GHIDRA_CAST<uint8_t *>(0x3));
|
||||
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_lightSprite))))->Sprite::SetColor(&layer->_color);
|
||||
(this->_lightSprite)._scale.x = g_vectorOne.x;
|
||||
(this->_lightSprite)._scale.y = g_vectorOne.y;
|
||||
@@ -17107,13 +17107,13 @@ LAB_0080cac5:
|
||||
return;
|
||||
}
|
||||
lightSprite = &this->_lightSprite;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
local_3c._seed = layer->_blendMode[0];
|
||||
local_3c._shift1 = layer->_blendMode[1];
|
||||
local_3c._shift2 = layer->_blendMode[2];
|
||||
local_3c._shift3 = layer->_blendMode[3];
|
||||
iVar2 = layer->_blendMode[4];
|
||||
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_blendMode[0] = DAT_00c35b6c;
|
||||
layer->_blendMode[1] = DAT_00c35b70;
|
||||
layer->_blendMode[2] = DAT_00c35b74;
|
||||
@@ -17132,8 +17132,8 @@ LAB_0080cac5:
|
||||
dVar6 = floor((double)local_20.y);
|
||||
local_20.x = local_18.y + *param_3;
|
||||
local_20.y = (float)dVar6 / fVar5 + param_3[1];
|
||||
(GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::Render(&local_20,&g_vectorZero,&g_vectorZero);
|
||||
layer = (GHIDRA_CAST<ANM2 *>((lightSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
ANM2::Render(lightSprite,&local_20,&g_vectorZero,&g_vectorZero);
|
||||
layer = ANM2::GetLayer(lightSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_blendMode[1] = local_3c._shift1;
|
||||
layer->_blendMode[0] = local_3c._seed;
|
||||
layer->_blendMode[2] = local_3c._shift2;
|
||||
@@ -17141,7 +17141,7 @@ LAB_0080cac5:
|
||||
layer->_blendMode[4] = iVar2;
|
||||
return;
|
||||
}
|
||||
layerFrame = (GHIDRA_CAST<ANM2 *>((¶m_2->_sprite)))->ANM2::GetLayerFrame(0);
|
||||
layerFrame = ANM2::GetLayerFrame(¶m_2->_sprite,0);
|
||||
if (layerFrame == (void *)0x0) {
|
||||
return;
|
||||
}
|
||||
@@ -17242,7 +17242,7 @@ LAB_0080cac5:
|
||||
if ((param_2->_sprite)._animState._animData == (void *)0x0) {
|
||||
return;
|
||||
}
|
||||
local_10 = (GHIDRA_CAST<AnimationState *>((&(param_2->_sprite)._animState)))->AnimationState::GetNullFrameById(0);
|
||||
local_10 = AnimationState::GetNullFrameById(&(param_2->_sprite)._animState,0);
|
||||
if (local_10 == GHIDRA_CAST<float *>(0x0)) {
|
||||
return;
|
||||
}
|
||||
@@ -17268,7 +17268,7 @@ LAB_0080cac5:
|
||||
LAB_0080e2c3:
|
||||
pVVar4 = &local_20;
|
||||
LAB_0080e2d3:
|
||||
(GHIDRA_CAST<ANM2 *>((&this->_lightSprite)))->ANM2::Render(pVVar4,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(&this->_lightSprite,pVVar4,&g_vectorZero,&g_vectorZero);
|
||||
switchD_0080c86a_caseD_8:
|
||||
return;
|
||||
}
|
||||
@@ -18280,10 +18280,10 @@ LAB_0080f949:
|
||||
if ((GHIDRA_INT(local_1e4) < GHIDRA_INT(local_204)) &&
|
||||
(((rock->_backdropType == 0x12 || (rock->_backdropType == 0x1c)) &&
|
||||
((*GHIDRA_CAST<uint8_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((rock)) + 0x4)))) + 0x44)) & 1) == 0)))) {
|
||||
pvVar8 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((rock)) + 0x7100)))))))->ANM2::GetAnimationData(s_Idle);
|
||||
pvVar8 = ANM2::GetAnimationData(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((rock)) + 0x7100)))),s_Idle);
|
||||
local_1e4 = GHIDRA_CAST<Game *>(GHIDRA_INT(((float)*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar8) + 0x30)) *
|
||||
((float)GHIDRA_INT(local_1e4) / (float)GHIDRA_INT(local_204)))));
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((rock)) + 0x7100)))))))->ANM2::SetAnimation(s_Idle,1);
|
||||
bVar4 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((rock)) + 0x7100)))),s_Idle,1);
|
||||
if (((bVar4 != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((rock)) + 0x7134)))) != 0)) &&
|
||||
(AnimationState::SetFrameFloat
|
||||
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((rock)) + 0x7130)))),(float)GHIDRA_INT(local_1e4)),
|
||||
@@ -18452,10 +18452,10 @@ LAB_0080f949:
|
||||
do {
|
||||
pvVar8 = *(void **)local_1e0;
|
||||
if ((pvVar8 != (void *)0x0) && (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar8) + 4)) == 7)) {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(pvVar8) + 0x40)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(pvVar8) + 0x40)),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 0;
|
||||
(**(code **)(**GHIDRA_CAST<int **>(local_1e0) + 0xc))();
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(*(void **))local_1e0 + 0x40)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(*(void **))local_1e0 + 0x40)),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 1;
|
||||
}
|
||||
local_1e0 = GHIDRA_CAST<Game *>((GHIDRA_INT(local_1e0) + 4));
|
||||
@@ -18816,7 +18816,8 @@ LAB_0080f949:
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((GHIDRA_CAST<Game *>(room))->_roomList[0x9b])) + 0xa8)))) = 0;
|
||||
}
|
||||
uVar6 = g_graphicsManager_flags;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(GHIDRA_CAST<Game *>(room))->_roomList[0x9a].SavedEffects._capacity))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>(&(GHIDRA_CAST<Game *>(room))->_roomList[0x9a].SavedEffects._capacity),
|
||||
GHIDRA_CAST<uint8_t *>(0x0));
|
||||
pGVar18 = g_game;
|
||||
iVar14 = 1;
|
||||
if ((uVar6 & 4) == 0) {
|
||||
@@ -18853,7 +18854,7 @@ LAB_0080f949:
|
||||
;
|
||||
local_224.y = (float)local_ac / (float)local_1d4 +
|
||||
(float)(GHIDRA_CAST<Game *>(room))->_roomList[0x18].Group;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(GHIDRA_CAST<Game *>(room))->_roomList[0x9a].SavedEffects._capacity))))->ANM2::Render(&local_224,
|
||||
ANM2::Render(GHIDRA_CAST<ANM2 *>(&(GHIDRA_CAST<Game *>(room))->_roomList[0x9a].SavedEffects._capacity),&local_224,
|
||||
&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
local_1f0 = GHIDRA_CAST<Game *>((GHIDRA_INT(&pGVar18->_stage) + 1));
|
||||
@@ -19052,10 +19053,10 @@ LAB_0080f949:
|
||||
local_ac = *GHIDRA_CAST<Game **>((GHIDRA_CAST<char *>(local_1d4) + 4));
|
||||
if ((GHIDRA_INT(local_1f8.y) < GHIDRA_INT(local_ac)) &&
|
||||
((room->_backdropType == 0x12 || (room->_backdropType == 0x1c)))) {
|
||||
pvVar8 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x7100)))))))->ANM2::GetAnimationData(s_Idle);
|
||||
pvVar8 = ANM2::GetAnimationData(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x7100)))),s_Idle);
|
||||
local_1f8.y = (float)GHIDRA_INT(((float)*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar8) + 0x30)) *
|
||||
((float)GHIDRA_INT(local_1f8.y) / (float)GHIDRA_INT(local_ac))));
|
||||
bVar4 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x7100)))))))->ANM2::SetAnimation(s_Idle,1);
|
||||
bVar4 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x7100)))),s_Idle,1);
|
||||
if ((bVar4 != 0) &&
|
||||
((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x7134)))) != 0 &&
|
||||
(AnimationState::SetFrameFloat
|
||||
@@ -19076,7 +19077,7 @@ LAB_0080f949:
|
||||
local_21c.x = VStack_c4.y + (float)pGVar18->_stage;
|
||||
local_21c.y = (float)dVar19 / (float)local_1f0 + (float)pGVar18->_stageType;
|
||||
local_1f8.y = (float)(float)dVar19;
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x7100)))))))->ANM2::Render(&local_21c,&g_vectorZero,&g_vectorZero);
|
||||
ANM2::Render(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x7100)))),&local_21c,&g_vectorZero,&g_vectorZero);
|
||||
}
|
||||
local_1d4 = GHIDRA_CAST<Game *>((GHIDRA_INT(local_1d4) + 0x1c));
|
||||
local_204 = GHIDRA_CAST<Game *>((GHIDRA_INT(local_204) + -1));
|
||||
@@ -19361,7 +19362,7 @@ LAB_0080f949:
|
||||
local_1f8.y = *GHIDRA_CAST<float *>(((GHIDRA_CAST<Game *>(room))->_stageType + 0xb4));
|
||||
sprintf_s(debugText,0x80,GHIDRA_CAST<uint8_t *>("%s %s %d %s (group %d)"));
|
||||
manager = g_manager;
|
||||
uVar6 = (GHIDRA_CAST<Font *>((&g_manager->_font5_terminus8)))->Font::get_string_width_n(debugText,-1);
|
||||
uVar6 = Font::get_string_width_n(&g_manager->_font5_terminus8,debugText,-1);
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1b8)) + 0x10))) = 0.0;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1b8)) + 0x14))) = 9.18341e-41;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1b8)) + 0x18))) = 0.0;
|
||||
@@ -19370,7 +19371,7 @@ LAB_0080f949:
|
||||
fStack_194 = 0.0;
|
||||
local_190 = 0.0;
|
||||
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),1);
|
||||
(GHIDRA_CAST<Font *>((&manager->_font5_terminus8)))->Font::DrawString(debugText,GHIDRA_CAST<KColor *>(&DAT_00c5d134),local_1b8 + 0x10,
|
||||
Font::DrawString(&manager->_font5_terminus8,debugText,GHIDRA_CAST<KColor *>(&DAT_00c5d134),local_1b8 + 0x10,
|
||||
g_screenWidth * 0.5 - ((float)(uVar6 >> 1) + 0.0),g_screenHeight - 12.0);
|
||||
(GHIDRA_CAST<msvc::string *>((stageName._buf)))->msvc::string::_Tidy_deallocate();
|
||||
}
|
||||
@@ -25332,12 +25333,12 @@ void Room::render_water()
|
||||
do {
|
||||
pvVar1 = *gridEntityIt;
|
||||
if ((pvVar1 != (void *)0x0) && (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar1) + 4)) == 7)) {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(pvVar1) + 0x40)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(pvVar1) + 0x40)),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 0;
|
||||
renderOffsetX.x = -(this->_renderSurfaceTopLeft).x;
|
||||
renderOffsetX.y = -(this->_renderSurfaceTopLeft).y;
|
||||
(**(code **)(*GHIDRA_CAST<int *>(*gridEntityIt) + 0xc))();
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(*gridEntityIt) + 0x40)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(*gridEntityIt) + 0x40)),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 1;
|
||||
}
|
||||
iVar11 = this->_gridWidth;
|
||||
@@ -25352,12 +25353,12 @@ void Room::render_water()
|
||||
do {
|
||||
pvVar1 = *gridEntityIt;
|
||||
if ((pvVar1 != (void *)0x0) && (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar1) + 4)) == 7)) {
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(pvVar1) + 0x40)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(pvVar1) + 0x40)),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 0;
|
||||
renderOffsetX.x = -(this->_renderSurfaceTopLeft).x;
|
||||
renderOffsetX.y = -(this->_renderSurfaceTopLeft).y;
|
||||
(**(code **)(*GHIDRA_CAST<int *>(*gridEntityIt) + 0xc))();
|
||||
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(*gridEntityIt) + 0x40)))))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(*gridEntityIt) + 0x40)),GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer->_visible = 1;
|
||||
}
|
||||
local_18 = local_18 + 1;
|
||||
@@ -27300,16 +27301,16 @@ LAB_00824b4c:
|
||||
uVar3 = Random();
|
||||
particle = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0x8a,&spawnPos,&velocity,GHIDRA_CAST<Entity *>(0x0),0,uVar3,0);
|
||||
particleSprite = &particle->_sprite;
|
||||
idleAnimData = (GHIDRA_CAST<ANM2 *>((particleSprite)))->ANM2::GetAnimationData(s_Idle);
|
||||
idleAnimData = ANM2::GetAnimationData(particleSprite,s_Idle);
|
||||
uVar3 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(idleAnimData) + 0x30));
|
||||
uVar4 = 0;
|
||||
if (uVar3 != 0) {
|
||||
uVar4 = Random();
|
||||
uVar4 = uVar4 % uVar3;
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<ANM2 *>((particleSprite)))->ANM2::SetAnimation(s_Idle,1);
|
||||
bVar2 = ANM2::SetAnimation(particleSprite,s_Idle,1);
|
||||
if (((bVar2 != 0) && ((particle->_sprite)._animState._animData != (void *)0x0)) &&
|
||||
((GHIDRA_CAST<AnimationState *>((&(particle->_sprite)._animState)))->AnimationState::SetFrameFloat((float)GHIDRA_INT(uVar4)),
|
||||
(AnimationState::SetFrameFloat(&(particle->_sprite)._animState,(float)GHIDRA_INT(uVar4)),
|
||||
(particle->_sprite)._animState._animData != (void *)0x0)) {
|
||||
(particle->_sprite)._animState._isPlaying = 0;
|
||||
}
|
||||
@@ -27362,7 +27363,7 @@ LAB_00824b4c:
|
||||
particleColor._tint[3] =
|
||||
(float)((double)GHIDRA_INT(uVar3) + __uint_to_double_fixup[-(GHIDRA_INT(uVar3) >> 0x1f)]) * 2.3283064e-10
|
||||
* 0.3 + 0.7;
|
||||
layer = (GHIDRA_CAST<ANM2 *>((particleSprite)))->ANM2::GetLayer(GHIDRA_CAST<uint8_t *>(0x0));
|
||||
layer = ANM2::GetLayer(particleSprite,GHIDRA_CAST<uint8_t *>(0x0));
|
||||
if (&layer->_color != &particleColor) {
|
||||
(layer->_color)._tint[0] = particleColor._tint[0];
|
||||
(layer->_color)._tint[1] = particleColor._tint[1];
|
||||
@@ -27687,7 +27688,7 @@ uint8_t Room::spawn_grid_from_desc(uint32_t gridIndex, GridEntityDesc *outDesc,
|
||||
}
|
||||
ExceptionList = ppvVar5;
|
||||
if (outSprite != GHIDRA_CAST<ANM2 *>(0x0)) {
|
||||
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(register0x00000010) + -0x168)))))->ANM2::ANM2(&pGVar7->_sprite);
|
||||
ANM2::ANM2(GHIDRA_CAST<ANM2 *>((GHIDRA_INT(register0x00000010) + -0x168)),&pGVar7->_sprite);
|
||||
other._championColor._offset[1] = in_stack_ffffff90;
|
||||
other._filename._buf[0] = in_stack_fffffe98[0];
|
||||
other._filename._buf[1] = in_stack_fffffe98[1];
|
||||
@@ -27788,7 +27789,7 @@ uint8_t Room::spawn_grid_from_desc(uint32_t gridIndex, GridEntityDesc *outDesc,
|
||||
(*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(&(other)) + 0x10a))) = SUB42(in_stack_ffffffa0,2);
|
||||
other._shadowLayerIndex = in_stack_ffffffa4;
|
||||
other._bitflags = in_stack_ffffffa8;
|
||||
(GHIDRA_CAST<ANM2 *>((outSprite)))->ANM2::operator_assign(other);
|
||||
ANM2::operator_assign(outSprite,other);
|
||||
}
|
||||
if (outDesc != GHIDRA_CAST<GridEntityDesc *>(0x0)) {
|
||||
listData = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((pGVar7)) + 0x8))));
|
||||
@@ -27990,7 +27991,7 @@ Entity_Effect * Room::PickupGridEntity(int GridIndex)
|
||||
gridDesc._varData = 0;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(gridDesc)) + 0x18))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(gridDesc)) + 0x18))) & 0xffffff00;
|
||||
gridDesc._variableSeed = 0x16a9de81;
|
||||
(GHIDRA_CAST<ANM2 *>((&gridSprite)))->ANM2::constructor();
|
||||
ANM2::constructor(&gridSprite);
|
||||
local_14 = 0;
|
||||
isSpawned = spawn_grid_from_desc(this,GridIndex,&gridDesc,&gridSprite);
|
||||
if (isSpawned == 0) {
|
||||
@@ -28013,9 +28014,9 @@ Entity_Effect * Room::PickupGridEntity(int GridIndex)
|
||||
pickupEffect->_state = this->_backdropType;
|
||||
}
|
||||
local_14 = 1;
|
||||
(GHIDRA_CAST<ANM2 *>((&gridSprite)))->ANM2::Reset();
|
||||
(GHIDRA_CAST<AnimationState *>((&gridSprite._overlayAnimState)))->AnimationState::~AnimationState();
|
||||
(GHIDRA_CAST<AnimationState *>((&gridSprite._animState)))->AnimationState::~AnimationState();
|
||||
ANM2::Reset(&gridSprite);
|
||||
AnimationState::~AnimationState(&gridSprite._overlayAnimState);
|
||||
AnimationState::~AnimationState(&gridSprite._animState);
|
||||
(GHIDRA_CAST<msvc::string *>((gridSprite._animDefaultName._buf)))->msvc::string::_Tidy_deallocate();
|
||||
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(&gridSprite))))->msvc::string::_Tidy_deallocate();
|
||||
ExceptionList = local_1c;
|
||||
@@ -28988,7 +28989,7 @@ void Room::open_red_room_doors(int doorSlot, RoomDescriptor *targetRoom)
|
||||
this_00->_slot = slot;
|
||||
if (((iVar2 == 1) || (iVar2 == 2)) || (iVar2 == 3)) {
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this_00)) + 0x8)))) = 8;
|
||||
(GHIDRA_CAST<ANM2 *>((&this_00->_extraSprite)))->ANM2::Reset();
|
||||
ANM2::Reset(&this_00->_extraSprite);
|
||||
(GHIDRA_CAST<GridEntity_Door *>((this_00)))->GridEntity_Door::LoadSprite();
|
||||
iVar2 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this_00)) + 0x8))));
|
||||
}
|
||||
@@ -29510,9 +29511,9 @@ void Room::render_pit_rails(float *param_2)
|
||||
int gridSlotOffset;
|
||||
Vector renderPos;
|
||||
|
||||
bVar1 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this->_gridEntities + 0x68)))))->ANM2::SetAnimation(GHIDRA_CAST<uint8_t *>("pitrail"),1);
|
||||
bVar1 = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this->_gridEntities + 0x68)),GHIDRA_CAST<uint8_t *>("pitrail"),1);
|
||||
if (((bVar1 != 0) && (this->_gridEntities[0x75] != (void *)0x0)) &&
|
||||
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this->_gridEntities + 0x74)))))->AnimationState::SetFrameFloat(0.0),
|
||||
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>((this->_gridEntities + 0x74)),0.0),
|
||||
this->_gridEntities[0x75] != (void *)0x0)) {
|
||||
*GHIDRA_CAST<uint8_t *>((this->_gridEntities + 0x79)) = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user