//
// GameToolbox::showOpenFileDialog from 0x1004f6300 to 0x1004f632e (46 bytes)
//
// 2 xrefs:
// > sub_1006196A0 @ 0x100619747
// > MusicDownloadManager::importCustomSFXFromFile @ 0x100656803
//
// 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 12:31:26 +0000
//
bool __fastcall GameToolbox::showOpenFileDialog(
void (__fastcall *a1)(_QWORD),
void (__fastcall *a2)(_QWORD),
double a3,
__int64 a4,
__int64 a5)
{
if ( (*(_BYTE *)a5 & 1) != 0 )
{
**(_BYTE **)(a5 + 16) = 0;
*(_QWORD *)(a5 + 8) = 0;
}
else
{
*(_WORD *)a5 = 0;
}
return sub_1004BE900(a1, a2, (unsigned __int8 *)a5, a3);
}