Files
isaac-port/generated-src/item_config_card.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

59 lines
1.9 KiB
C++

#include "classes.h"
// 00724bd0
std_string * ItemConfig_Card::get_display_desc(std_string *outDescription, int unused)
{
int language;
std_string *text;
std_string *lengthCursor;
uint8_t local_5;
char *lengthChar;
Manager *manager;
manager = g_manager;
if ((this->desc)._size == 0) {
outDescription->_buf[0] = '\0';
outDescription->_buf[1] = '\0';
outDescription->_buf[2] = '\0';
outDescription->_buf[3] = '\0';
outDescription->_size = 0;
outDescription->_capacity = 0xf;
outDescription->_buf[0] = '\0';
outDescription->_size = 0;
outDescription->_buf[0] = '\0';
return outDescription;
}
text = &this->desc;
if (0xf < (this->desc)._capacity) {
text = *GHIDRA_CAST<std_string **>(text->_buf);
}
language = *GHIDRA_CAST<int *>(&g_manager->_stringTable);
if (text->_buf[0] == '#') {
local_5 = 0;
StringTable::get_string
(&g_manager->_stringTable,GHIDRA_CAST<uint8_t *>("PocketItems"),language,GHIDRA_CAST<uint8_t *>((text->_buf + 1)),
&local_5);
if (local_5 == 0) {
local_5 = 0;
text = (std_string *)
StringTable::get_string
(&manager->_stringTable,GHIDRA_CAST<uint8_t *>("PocketItems"),language,
GHIDRA_CAST<uint8_t *>((text->_buf + 1)),&local_5);
}
}
outDescription->_buf[0] = '\0';
outDescription->_buf[1] = '\0';
outDescription->_buf[2] = '\0';
outDescription->_buf[3] = '\0';
outDescription->_size = 0;
outDescription->_capacity = 0xf;
outDescription->_buf[0] = '\0';
lengthCursor = text;
do {
lengthChar = lengthCursor->_buf;
lengthCursor = GHIDRA_CAST<std_string *>((lengthCursor->_buf + 1));
} while (*lengthChar != '\0');
(GHIDRA_CAST<msvc::string *>((outDescription->_buf)))->msvc::string::assign(GHIDRA_CAST<uint8_t *>(text),GHIDRA_INT(lengthCursor) - GHIDRA_INT((text->_buf + 1)));
return outDescription;
}