#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(text->_buf); } language = *GHIDRA_CAST(&g_manager->_stringTable); if (text->_buf[0] == '#') { local_5 = 0; StringTable::get_string (&g_manager->_stringTable,GHIDRA_CAST("PocketItems"),language,GHIDRA_CAST((text->_buf + 1)), &local_5); if (local_5 == 0) { local_5 = 0; text = (std_string *) StringTable::get_string (&manager->_stringTable,GHIDRA_CAST("PocketItems"),language, GHIDRA_CAST((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((lengthCursor->_buf + 1)); } while (*lengthChar != '\0'); (GHIDRA_CAST((outDescription->_buf)))->msvc::string::assign(GHIDRA_CAST(text),GHIDRA_INT(lengthCursor) - GHIDRA_INT((text->_buf + 1))); return outDescription; }