//
// GManager::save from 0x10024a8e4 to 0x10024a95c (120 bytes)
//
// 4 xrefs:
// > AppDelegate::trySaveGame @ 0x100269798
// > AppDelegate::trySaveGame @ 0x1002697a0
// > GameManager::doQuickSave @ 0x10031d2fc
// > EditorPauseLayer::saveLevel @ 0x10039e618
//
// 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
//
void __fastcall GManager::save(GManager *a1)
{
std::string __p; // [xsp+0h] [xbp-30h] BYREF
if ( !a1->m_saved )
{
a1->m_saved = 1;
if ( a1->m_fileName.m_data.m_short.shortStorage.__elems_[22] < 0 )
sub_1000097D0(&__p, (void *)a1->m_fileName.m_data.m_long.capacitym1, a1->m_fileName.m_data.m_long.size);
else
__p = a1->m_fileName;
GManager::saveGMTo(a1, &__p);
if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )
operator delete((void *)__p.m_data.m_long.capacitym1);
}
}