//
// GameToolbox::directoryExists from 0x3ceb60 to 0x3ceba6 (70 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x472c52
// > AutoSaveSettingsLayer::getBackupDirectory @ 0x6e701a
// > AutoSaveSettingsLayer::openBackupDirectory @ 0x6e7148
// > AutoSaveSettingsLayer::onOpenBackupDir @ 0x6e719a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:39 +0000
//
bool __fastcall GameToolbox::directoryExists(int a1)
{
const char *v1; // r0
_WORD v3[54]; // [sp+0h] [bp-70h] BYREF
if ( (*(_BYTE *)a1 & 1) != 0 )
v1 = *(const char **)(a1 + 8);
else
v1 = (const char *)(a1 + 1);
return !stat(v1, (struct stat *)v3) && (v3[8] & 0xF000) == 0x4000;
}