Decompile fn_09076 (CSimpleStringMgr::Create)

Batch #12538 by ragnarok-clanker: 1 byte-identical, 0 confirmed by peer review.

- fn_09076 CSimpleStringMgr::Create: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-05 18:16:16 +00:00
commit cce1c47803
2 changed files with 26 additions and 0 deletions

View file

@ -3,6 +3,7 @@
#include "Utility/Text/StringUtil.h"
#include <cstring>
#include <new>
#include <utility>
// GLOBAL: gl_24840
@ -11,6 +12,27 @@ CSimpleStringMgr* g_simpleStringMgr = nullptr;
// GLOBAL: gl_24863
static CCommonObject g_simpleStringObject;
// OFFSET: 0x007A9580
// FUNCTION: fn_09076
bool CSimpleStringMgr::Create() {
if (g_simpleStringMgr) {
return false;
}
g_simpleStringMgr = new (std::nothrow) CSimpleStringMgr();
if (!g_simpleStringMgr) {
return false;
}
if (!g_simpleStringMgr->m_initialized) {
delete g_simpleStringMgr;
g_simpleStringMgr = nullptr;
return false;
}
return true;
}
// OFFSET: 0x007A96A0
// FUNCTION: fn_09077
void CSimpleStringMgr::Destroy() {