diff --git a/Makefile b/Makefile index 934fb6769..2b1424675 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,8 @@ PROCFLAGS := -fprologue-fixup=old_stack SDATA_PDHR := 9 SBSS_PDHR := 10 +$(BUILD_DIR)/src/Dolphin/dvdFatal.o: MWCC_VERSION := 1.0 + #------------------------------------------------------------------------------- # Recipes #------------------------------------------------------------------------------- diff --git a/src/Dolphin/dvdFatal.c b/src/Dolphin/dvdFatal.c index 5da63f326..5420ea716 100644 --- a/src/Dolphin/dvdFatal.c +++ b/src/Dolphin/dvdFatal.c @@ -1,24 +1,24 @@ - +extern void (*FatalFunc)(); /* * --INFO-- * Address: ........ * Size: 00008C */ -void ShowMessage(void) +/* void ShowMessage(void) { // UNUSED FUNCTION -} +} */ /* * --INFO-- * Address: ........ * Size: 000070 */ -void DVDSetAutoFatalMessaging(void) +/* void DVDSetAutoFatalMessaging(void) { // UNUSED FUNCTION -} +} */ /* * --INFO-- @@ -27,6 +27,10 @@ void DVDSetAutoFatalMessaging(void) */ void __DVDPrintFatalMessage(void) { + if (FatalFunc != 0) { + (*FatalFunc)(); + } + return; /* .loc_0x0: mflr r0