//
// cocos2d::CCFileUtils::sharedFileUtils from 0x18007b060 to 0x18007b0e0 (128 bytes)
//
// 47 xrefs:
// > cocos2d::CCArray::createWithContentsOfFileThreadSafe @ 0x180006cfd
// > cocos2d::CCDictionary::createWithContentsOfFileThreadSafe @ 0x18000a2b3
// > cocos2d::CCDictionary::writeToFile @ 0x18000c633
// > cocos2d::CCString::createWithContentsOfFile @ 0x180010315
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x18001bb49
// > DS_Dictionary::loadRootSubDictFromFile @ 0x18001bddb
// > DS_Dictionary::loadRootSubDictFromFile @ 0x18001bdfc
// > DS_Dictionary::loadRootSubDictFromFile @ 0x18001bed3
// > sub_18003D240 @ 0x18003d289
// > cocos2d::CCLabelAtlas::initWithString @ 0x180045e19
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x18004a2cd
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x18004b49d
// > cocos2d::CCRenderTexture::saveToFile @ 0x18006056c
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800686b8
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800686cc
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x180068704
// > cocos2d::CCParticleSystem::initWithFile @ 0x18006897e
// > cocos2d::CCSAXParser::parse @ 0x180072870
// > cocos2d::CCApplication::setResourceRootPath @ 0x180073a25
// > cocos2d::CCImage::initWithImageFile @ 0x18007cb1f
// > cocos2d::CCImage::initWithImageFile @ 0x18007cb3a
// > cocos2d::CCImage::initWithImageFileThreadSafe @ 0x18007ccd8
// > sub_18007D8A0 @ 0x18007dae8
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086ad4
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x180086b5f
// > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x18008a60f
// > cocos2d::CCAnimationCache::addAnimationsWithFile @ 0x18008a6cf
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x1800920e9
// > sub_18009E3D0 @ 0x18009e3e6
// > sub_18009EE00 @ 0x18009eec4
// > cocos2d::CCUserDefault::initXMLFilePath @ 0x18009efc5
// > cocos2d::ZipUtils::ccInflateCCZFile @ 0x1800a36f7
// > cocos2d::CCTextureCache::addETCImage @ 0x1800a7201
// > cocos2d::CCTextureCache::addImage @ 0x1800a73e4
// > cocos2d::CCTextureCache::addImageAsync @ 0x1800a7f5e
// > cocos2d::CCTextureCache::addPVRImage @ 0x1800a88b1
// > cocos2d::CCTextureCache::addUIImage @ 0x1800a8acc
// > cocos2d::CCTextureCache::reloadTexture @ 0x1800a9701
// > cocos2d::CCTextureCache::removeTextureForKey @ 0x1800a9888
// > cocos2d::CCTextureCache::textureForKey @ 0x1800a9d1f
// > sub_1800AA090 @ 0x1800aa322
// > cocos2d::CCTileMapAtlas::loadTGAfile @ 0x1800ab35f
// > cocos2d::CCTMXMapInfo::internalInit @ 0x1800af8a7
// > cocos2d::CCTMXMapInfo::parseXMLFile @ 0x1800afa3d
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b097c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4cf8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCFileUtils *__fastcall cocos2d::CCFileUtils::sharedFileUtils()
{
struct cocos2d::CCFileUtils *result; // rax
cocos2d::CCFileUtils *v1; // rax
cocos2d::CCFileUtilsWin32 *v2; // rbx
char (__fastcall *removeSearchPath)(cocos2d::CCFileUtilsWin32 *); // rdx
result = cocos2d::CCFileUtils::s_sharedFileUtils;
if ( !cocos2d::CCFileUtils::s_sharedFileUtils )
{
v1 = (cocos2d::CCFileUtils *)operator new(0x90u);
v2 = (cocos2d::CCFileUtilsWin32 *)v1;
if ( v1 )
{
cocos2d::CCFileUtils::CCFileUtils(v1);
v2->__vftable = (cocos2d::CCFileUtilsWin32_vtbl *)&cocos2d::CCFileUtilsWin32::`vftable';
}
else
{
v2 = nullptr;
}
cocos2d::CCFileUtils::s_sharedFileUtils = v2;
removeSearchPath = (char (__fastcall *)(cocos2d::CCFileUtilsWin32 *))v2->removeSearchPath;
if ( removeSearchPath == cocos2d::CCFileUtilsWin32::init )
cocos2d::CCFileUtilsWin32::init(v2);
else
removeSearchPath(v2);
return cocos2d::CCFileUtils::s_sharedFileUtils;
}
return result;
}