//
// InfoLayer::refreshUserTitle from 0x53d848 to 0x53d8dc (148 bytes)
//
// 2 xrefs:
// > InfoLayer::toggleModRoom @ 0x53ec78
// > InfoLayer::init @ 0x53eeb8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:52:16 +0000
//
int __fastcall InfoLayer::refreshUserTitle(int this)
{
int v1; // r5
int v2; // r1
const char *v3; // r1
const char *v4; // r2
cocos2d::CCString *v5; // r0
int CString; // r7
int v7[3]; // [sp+0h] [bp-14h] BYREF
v1 = this;
if ( *(_DWORD *)(this + 644) )
{
v2 = *(_DWORD *)(this + 540);
if ( v2 )
{
std::string::basic_string(v7, v2 + 264);
if ( (v7[0] & 1) != 0 )
v3 = (const char *)v7[2];
else
v3 = (char *)v7 + 1;
if ( *(_BYTE *)(v1 + 640) )
v4 = "notes";
else
v4 = "comments";
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s's %s",
v3,
v4,
*(unsigned __int8 *)(v1 + 640));
CString = cocos2d::CCString::getCString(v5);
std::string::~string((int)v7);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 644) + 464))(*(_DWORD *)(v1 + 644), CString);
return cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(v1 + 644), 180.0, 0.55, 0.0);
}
}
return this;
}