fix(error): fix up stupid error_report::Format function mistakes

This commit is contained in:
phaneron 2024-11-22 02:47:26 -05:00
parent 2615f3c7e6
commit cab7870726

View file

@ -43,12 +43,12 @@ class error_report {
void Format() { void Format() {
this->printf("\n=========================================================\n"); this->printf("\n=========================================================\n");
if (linenumber == -5) { if (this->m_linenumber == -5) {
this->printf("Exception Raised!\n\n"); this->printf("Exception Raised!\n\n");
this->printf(" App: %s\n", "GenericBlizzardApp"); this->printf(" App: %s\n", "GenericBlizzardApp");
if (errorcode != 0x85100000) { if (this->m_errorcode != 0x85100000) {
this->printf(" Error Code: 0x%08X\n", this->m_errorcode); this->printf(" Error Code: 0x%08X\n", this->m_errorcode);
} }
@ -62,12 +62,12 @@ class error_report {
this->printf(" File: %s\n", this->m_filename); this->printf(" File: %s\n", this->m_filename);
this->printf(" Line: %d\n", this->m_linenumber); this->printf(" Line: %d\n", this->m_linenumber);
if (errorcode != 0x85100000) { if (this->m_errorcode != 0x85100000) {
this->printf(" Error Code: 0x%08X\n", errorcode); this->printf(" Error Code: 0x%08X\n", this->m_errorcode);
} }
// TODO output time // TODO output time
this->printf(" Assertion: %s\n", description); this->printf(" Assertion: %s\n", this->m_description);
} }
} }