Files
isaac-port/generated-src/special_seed.cpp
T
shweetandClaude Opus 5.5 9d4d4f5c64 Build 29: zero-length placeholder structs, generated-src with standard types
--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:41:34 -05:00

56 lines
1.6 KiB
C++

#include "classes.h"
// 008f0040
std_string * SpecialSeed::get_display_name(std_string *outName)
{
uint8_t *text;
uint8_t *textEnd;
uint8_t local_5;
uint8_t ch;
Manager *manager;
manager = g_manager;
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x20)) == 0) {
outName->_buf[0] = '\0';
outName->_buf[1] = '\0';
outName->_buf[2] = '\0';
outName->_buf[3] = '\0';
outName->_size = 0;
outName->_capacity = 0xf;
outName->_buf[0] = '\0';
outName->_size = 0;
outName->_buf[0] = '\0';
return outName;
}
text = GHIDRA_CAST<uint8_t *>((GHIDRA_INT(this) + 0x10));
if (0xf < *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x24))) {
text = *GHIDRA_CAST<uint8_t **>(text);
}
if (*text == 0x23) {
local_5 = 0;
StringTable::get_string
(&g_manager->_stringTable,GHIDRA_CAST<uint8_t *>("SeedMenu"),*GHIDRA_CAST<int *>(&g_manager->_stringTable),text + 1
,&local_5);
if (local_5 == 0) {
local_5 = 0;
text = StringTable::get_string
(&manager->_stringTable,GHIDRA_CAST<uint8_t *>("SeedMenu"),*GHIDRA_CAST<int *>(&manager->_stringTable),
text + 1,&local_5);
}
}
outName->_buf[0] = '\0';
outName->_buf[1] = '\0';
outName->_buf[2] = '\0';
outName->_buf[3] = '\0';
outName->_size = 0;
outName->_capacity = 0xf;
outName->_buf[0] = '\0';
textEnd = text;
do {
ch = *textEnd;
textEnd = textEnd + 1;
} while (ch != 0);
(GHIDRA_CAST<msvc::string *>((outName->_buf)))->msvc::string::assign(text,GHIDRA_INT(textEnd) - GHIDRA_INT((text + 1)));
return outName;
}