Files
isaac-port/generated-src/popup_window.cpp
T
shweetandClaude Opus 5.5 780767f5e1 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>
2026-11-19 23:04:54 -05:00

107 lines
3.2 KiB
C++

#include "classes.h"
// 009b7500
void PopupWindow::hide()
{
int fieldOffset;
uint8_t *animNameChar;
uint32_t compareResult;
char *dissapearChar;
int iVar1;
int animNameOffset;
bool isLess;
int soundId;
uint8_t ch;
Manager *manager;
manager = g_manager;
if (*GHIDRA_CAST<int *>(this) != 0) {
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4));
animNameOffset = 0x174;
fieldOffset = 0x174;
if (iVar1 != 1) {
fieldOffset = 0x60;
}
if (*GHIDRA_CAST<int *>((fieldOffset + GHIDRA_INT(this))) != 0) {
fieldOffset = 0x184;
if (iVar1 != 1) {
fieldOffset = 0x70;
}
if (*GHIDRA_CAST<char *>((fieldOffset + GHIDRA_INT(this))) == '\0') {
if (iVar1 != 1) {
animNameOffset = 0x60;
}
animNameChar = *GHIDRA_CAST<uint8_t **>((animNameOffset + GHIDRA_INT(this)));
if (0xf < *GHIDRA_CAST<uint32_t *>((animNameChar + 0x14))) {
animNameChar = *GHIDRA_CAST<uint8_t **>(animNameChar);
}
dissapearChar = "Dissapear";
do {
ch = *animNameChar;
isLess = ch < (uint8_t)*dissapearChar;
if (ch != *dissapearChar) {
LAB_009b75c6:
compareResult = -GHIDRA_UINT(isLess) | 1;
goto LAB_009b75cb;
}
if (ch == 0) break;
ch = animNameChar[1];
isLess = ch < (uint8_t)dissapearChar[1];
if (ch != dissapearChar[1]) goto LAB_009b75c6;
animNameChar = animNameChar + 2;
dissapearChar = dissapearChar + 2;
} while (ch != 0);
compareResult = 0;
LAB_009b75cb:
if (compareResult == 0) {
return;
}
}
else {
if (iVar1 != 1) {
animNameOffset = 0x60;
}
animNameChar = *GHIDRA_CAST<uint8_t **>((animNameOffset + GHIDRA_INT(this)));
if (0xf < *GHIDRA_CAST<uint32_t *>((animNameChar + 0x14))) {
animNameChar = *GHIDRA_CAST<uint8_t **>(animNameChar);
}
dissapearChar = "Dissapear";
do {
ch = *animNameChar;
isLess = ch < (uint8_t)*dissapearChar;
if (ch != *dissapearChar) {
LAB_009b7580:
compareResult = -GHIDRA_UINT(isLess) | 1;
goto LAB_009b7585;
}
if (ch == 0) break;
ch = animNameChar[1];
isLess = ch < (uint8_t)dissapearChar[1];
if (ch != dissapearChar[1]) goto LAB_009b7580;
animNameChar = animNameChar + 2;
dissapearChar = dissapearChar + 2;
} while (ch != 0);
compareResult = 0;
LAB_009b7585:
if (compareResult == 0) {
return;
}
}
}
soundId = 0x12;
seed_fart_sound_override(&soundId);
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(soundId,0.7,2,0,1.0,0.0);
iVar1 = 0x140;
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) != 1) {
iVar1 = 0x2c;
}
ANM2::Play(GHIDRA_CAST<ANM2 *>((iVar1 + GHIDRA_INT(this))),GHIDRA_CAST<uint8_t *>("Dissapear"),0);
iVar1 = 400;
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) != 1) {
iVar1 = 0x7c;
}
AnimationState::SetAnimationData(GHIDRA_CAST<AnimationState *>((iVar1 + GHIDRA_INT(this))),(void *)0x0);
}
return;
}