//
// cocos2d::CCFileUtilsWin32::init from 0x18007dd40 to 0x18007de07 (199 bytes)
//
// 5 xrefs:
// > cocos2d::CCFileUtils::sharedFileUtils @ 0x18007e2cf
// > cocos2d::CCFileUtils::sharedFileUtils @ 0x18007e2c0
// > ??> @ 0x1801077f0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801befa4
//
// 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:22:01 +0000
//
char __fastcall cocos2d::CCFileUtilsWin32::init(void **this)
{
DWORD CurrentDirectoryW; // eax
size_t v3; // rax
WCHAR Buffer[264]; // [rsp+40h] [rbp-228h] BYREF
if ( !Str[0] )
{
memset(Buffer, 0, 0x208u);
CurrentDirectoryW = GetCurrentDirectoryW(0x208u, Buffer);
Str[WideCharToMultiByte(0, 0, Buffer, CurrentDirectoryW, Str, 260, nullptr, nullptr)] = 92;
}
v3 = strlen(Str);
sub_1800101E0(this + 8, Str, v3);
return cocos2d::CCFileUtils::init((cocos2d::CCFileUtils *)this);
}