//
// LevelBrowserLayer::shareCommentClosed from 0x100491480 to 0x1004914e1 (97 bytes)
//
// 1 xrefs:
// > ??> @ 0x100942a60
//
// 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 LevelBrowserLayer::shareCommentClosed(LevelBrowserLayer *a1, const std::string *a2, __int64 a3)
{
GameLevelManager *v3; // rax
GJLevelList *NewLevelList; // r15
if ( *(_DWORD *)(a3 + 664) == 5 )
{
v3 = GameLevelManager::sharedState();
NewLevelList = GameLevelManager::createNewLevelList(v3);
GameLevelManager::sharedState()->m_returnToLocalLevels = 1;
std::string::operator=((std::string *)&NewLevelList->m_listName, a2);
LevelBrowserLayer::loadPage(a1, a1->m_searchObject);
}
}