//
// AutoBackupPopup::backupDirectory from 0x1400ccb10 to 0x1400ccb84 (116 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x140409705
// > ??> @ 0x1409140d8
//
// 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:26:23 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall AutoBackupPopup::backupDirectory(_QWORD *Src)
{
__int64 v2; // rax
_QWORD *v3; // rcx
unsigned __int64 v4; // rdx
_QWORD *v5; // rcx
AutoSaveSettingsLayer::getBackupDirectory(Src);
v2 = Src[2];
if ( v2 )
{
v3 = Src;
v4 = Src[3];
if ( v4 > 0xF )
v3 = (_QWORD *)*Src;
if ( *((_BYTE *)v3 + v2 - 1) != 47 )
{
v5 = Src;
if ( v4 > 0xF )
v5 = (_QWORD *)*Src;
if ( *((_BYTE *)v5 + v2 - 1) != 92 )
sub_140044D80(Src, "/", 1u);
}
}
return Src;
}