g_fxo: implement logging for object creation/destruction.

Only logged at automated phase for initial/final processing.
This commit is contained in:
Nekotekina 2020-02-27 01:21:45 +03:00
parent ee46ad1ca9
commit f71cdb4eb8
2 changed files with 27 additions and 1 deletions

View file

@ -1762,4 +1762,16 @@ s32 error_code::error_report(const fmt_type_info* sup, u64 arg, const fmt_type_i
return static_cast<s32>(arg);
}
template <>
void stx::manual_fixed_typemap<void>::init_reporter(const char* name, unsigned long long created)
{
sys_log.notice("Object '%s' was created [%u]", name, created);
}
template <>
void stx::manual_fixed_typemap<void>::destroy_reporter(const char* name, unsigned long long created)
{
sys_log.notice("Object '%s' was destroyed [%u]", name, created);
}
Emulator Emu;