//
// _set_error_mode from 0x180139058 to 0x180139098 (64 bytes)
//
// 3 xrefs:
// > _wassert @ 0x180131577
// > ??> @ 0x180203770
// > ??> @ 0x18020377c
//
// 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
//
int __cdecl set_error_mode(int Mode)
{
int result; // eax
if ( Mode >= 0 )
{
if ( Mode <= 2 )
{
result = dword_1801F5598;
dword_1801F5598 = Mode;
return result;
}
if ( Mode == 3 )
return dword_1801F5598;
}
*errno() = 22;
invalid_parameter_noinfo();
return -1;
}