//
// cocos2d::CCFileUtils::sharedFileUtils from 0x5e1588 to 0x5e1610 (136 bytes)
//
// 65 xrefs:
// > PlatformToolbox::doesFileExist @ 0x2be51e
// > GameToolbox::saveStringToFile @ 0x2eddb4
// > FMODAudioEngine::createStream @ 0x2ff2aa
// > FMODAudioEngine::preloadEffectAsync @ 0x3047ea
// > FMODAudioEngine::preloadEffect @ 0x304c8c
// > AppDelegate::applicationDidFinishLaunching @ 0x307978
// > GameManager::unloadBackground @ 0x32271c
// > GameManager::reloadAllStep2 @ 0x323810
// > GameManager::recountUserStats @ 0x327f72
// > LocalLevelManager::tryLoadMainLevelString @ 0x4335be
// > MusicDownloadManager::pathForSFXFolder @ 0x459514
// > MusicDownloadManager::pathForSFXFolder @ 0x45953e
// > MusicDownloadManager::isSFXDownloaded @ 0x459724
// > MusicDownloadManager::pathForSongFolder @ 0x4597dc
// > MusicDownloadManager::pathForSongFolder @ 0x459806
// > MusicDownloadManager::isSongDownloaded @ 0x459938
// > MusicDownloadManager::parseSFXLibrary @ 0x45a8d4
// > MusicDownloadManager::parseMusicLibrary @ 0x45cd84
// > cocos2d::extension::AssetsManager::setSearchPath @ 0x5a0438
// > cocos2d::extension::AssetsManager::setSearchPath @ 0x5a0550
// > cocos2d::CCDictionary::createWithContentsOfFileThreadSafe @ 0x5c0ea6
// > cocos2d::CCDictionary::writeToFile @ 0x5c0f06
// > cocos2d::CCString::createWithContentsOfFile @ 0x5c1ce2
// > cocos2d::CCArray::createWithContentsOfFileThreadSafe @ 0x5c1d8a
// > cocos2d::CCLabelAtlas::initWithString @ 0x5cb2da
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0x5cbc8a
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x5cc432
// > cocos2d::CCRenderTexture::saveToFile @ 0x5d8b5e
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcbae
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcbba
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x5dcbd4
// > cocos2d::CCParticleSystem::initWithFile @ 0x5dce06
// > cocos2d::CCSAXParser::parse @ 0x5de4f2
// > cocos2d::CCImage::initWithImageFileThreadSafe @ 0x5e1f46
// > cocos2d::CCImage::initWithImageFile @ 0x5e1fbc
// > cocos2d::CCImage::initWithImageFile @ 0x5e1fce
// > cocos2d::BitmapDC::getBitmapFromJavaShadowStroke @ 0x5e24e6
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x5e407c
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x5e40a0
// > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x5e5e48
// > cocos2d::CCAnimationCache::addAnimationsWithFile @ 0x5e5ec0
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x5e9bec
// > sub_5EB9B4 @ 0x5eb9e6
// > cocos2d::tgaLoad @ 0x5ecca2
// > cocos2d::ZipUtils::ccInflateCCZFile @ 0x5f0252
// > cocos2d::CCTextureCache::addETCImage @ 0x5f4ce4
// > cocos2d::CCTextureCache::removeTextureForKey @ 0x5f4e44
// > cocos2d::CCTextureCache::textureForKey @ 0x5f4e8e
// > cocos2d::CCTextureCache::addPVRImage @ 0x5f52b8
// > cocos2d::CCTextureCache::addImage @ 0x5f5368
// > cocos2d::CCTextureCache::reloadTexture @ 0x5f5574
// > cocos2d::CCTextureCache::addUIImage @ 0x5f5636
// > cocos2d::VolatileTexture::reloadAllTextures @ 0x5f58b8
// > cocos2d::CCTextureCache::addImageAsync @ 0x5f5f84
// > cocos2d::CCTextureETC::initWithFile @ 0x5f647e
// > cocos2d::CCTexturePVR::initWithContentsOfFile @ 0x5f6a32
// > cocos2d::CCTMXMapInfo::internalInit @ 0x5f8cae
// > cocos2d::CCTMXMapInfo::parseXMLFile @ 0x5f8eb4
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9344
// > cocos2d::CCTileMapAtlas::loadTGAfile @ 0x5fa01e
// > FileOperation::getFilePath @ 0x5fc508
// > DS_Dictionary::loadRootSubDictFromFile @ 0x5fec48
// > DS_Dictionary::loadRootSubDictFromFile @ 0x5fec66
// > DS_Dictionary::loadRootSubDictFromFile @ 0x5fecda
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x5fedbe
//
// 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
//
cocos2d::CCFileUtils *cocos2d::CCFileUtils::sharedFileUtils()
{
cocos2d::CCFileUtilsAndroid *v0; // r4
cocos2d::CCFileUtilsAndroid v1; // r3
char *ApkPath; // r0
cocos2d::ZipFile *v3; // r8
std::string v5; // [sp+4h] [bp-Ch] BYREF
std::string v6; // [sp+8h] [bp-8h] BYREF
if ( !cocos2d::CCFileUtils::s_sharedFileUtils )
{
v0 = (cocos2d::CCFileUtilsAndroid *)operator new(0x40u);
cocos2d::CCFileUtilsAndroid::CCFileUtilsAndroid(v0);
v1.__vftable = v0->__vftable;
cocos2d::CCFileUtils::s_sharedFileUtils = (int)v0;
((void (__fastcall *)(cocos2d::CCFileUtilsAndroid *))v1.removeSearchPath)(v0);
ApkPath = (char *)getApkPath();
sub_776584((int)&v5, ApkPath);
sub_776584((int)&v6, "assets/");
v3 = (cocos2d::ZipFile *)operator new(0xCu);
cocos2d::ZipFile::ZipFile(v3, &v5, &v6);
dword_AC907C = (int)v3;
sub_774008(&v6);
sub_774008(&v5);
}
return (cocos2d::CCFileUtils *)cocos2d::CCFileUtils::s_sharedFileUtils;
}