unregister OSD_OUTPUT_CHANNEL hooks when validity_checker is destroyed - fixes logging of unhandled exceptions in validation (nw)

This commit is contained in:
Oliver Stöneberg 2014-09-08 19:12:15 +00:00
parent c43f9982de
commit 104914b3d9
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -34,6 +34,7 @@ class validity_checker
public:
validity_checker(emu_options &options);
~validity_checker();
// getters
int errors() const { return m_errors; }