//
// cocos2d::CCFileUtilsWin32::init from 0x18007ab10 to 0x18007abdf (207 bytes)
//
// 6 xrefs:
// > cocos2d::CCFileUtils::sharedFileUtils @ 0x18007b0bf
// > cocos2d::CCFileUtils::sharedFileUtils @ 0x18007b0b0
// > ??> @ 0x180101118
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4cbc
// > ??> @ 0x1801b4cc8
//
// 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
//
char __fastcall cocos2d::CCFileUtilsWin32::init(cocos2d::CCFileUtilsWin32 *this)
{
DWORD CurrentDirectoryW; // eax
size_t v3; // r8
WCHAR Buffer[264]; // [rsp+40h] [rbp-228h] BYREF
if ( !MultiByteStr[0] )
{
memset(Buffer, 0, 0x208u);
CurrentDirectoryW = GetCurrentDirectoryW(0x208u, Buffer);
MultiByteStr[WideCharToMultiByte(0, 0, Buffer, CurrentDirectoryW, MultiByteStr, 260, nullptr, nullptr)] = 92;
}
v3 = -1;
do
++v3;
while ( MultiByteStr[v3] );
sub_180010050((void **)this + 8, MultiByteStr, v3);
return cocos2d::CCFileUtils::init(this);
}