//
// cocos2d::CCString::createWithContentsOfFile from 0x180010490 to 0x1800104f3 (99 bytes)
//
// 6 xrefs:
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004b994
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089ca2
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180089d46
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b81ac
// > ??> @ 0x1801b81b8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:21:22 +0000
//
struct cocos2d::CCString *__fastcall cocos2d::CCString::createWithContentsOfFile(const char *a1)
{
struct cocos2d::CCFileUtils *v2; // rax
unsigned __int8 *v3; // rdi
struct cocos2d::CCString *result; // rax
struct cocos2d::CCString *v5; // rbx
size_t Size; // [rsp+38h] [rbp+10h] BYREF
LODWORD(Size) = 0;
v2 = cocos2d::CCFileUtils::sharedFileUtils();
v3 = (unsigned __int8 *)(*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, const char *, const char *, size_t *))(*(_QWORD *)v2 + 24LL))(
v2,
a1,
"rb",
&Size);
result = cocos2d::CCString::createWithData(v3, (unsigned int)Size);
v5 = result;
if ( v3 )
{
j_j_free_0(v3);
return v5;
}
return result;
}