mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
unregister OSD_OUTPUT_CHANNEL hooks when validity_checker is destroyed - fixes logging of unhandled exceptions in validation (nw)
This commit is contained in:
parent
c43f9982de
commit
104914b3d9
@ -141,6 +141,14 @@ validity_checker::validity_checker(emu_options &options)
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// validity_checker - destructor
|
||||
//-------------------------------------------------
|
||||
|
||||
validity_checker::~validity_checker()
|
||||
{
|
||||
validate_end();
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// check_driver - check a single driver
|
||||
@ -343,6 +351,7 @@ void validity_checker::validate_core()
|
||||
if (sizeof(void *) != 4) osd_printf_error("PTR64 flag not enabled, but was compiled for 64-bit target\n");
|
||||
#endif
|
||||
|
||||
// TODO: check if this is actually working
|
||||
// check endianness definition
|
||||
UINT16 lsbtest = 0;
|
||||
*(UINT8 *)&lsbtest = 0xff;
|
||||
|
@ -34,6 +34,7 @@ class validity_checker
|
||||
|
||||
public:
|
||||
validity_checker(emu_options &options);
|
||||
~validity_checker();
|
||||
|
||||
// getters
|
||||
int errors() const { return m_errors; }
|
||||
|
Loading…
Reference in New Issue
Block a user