From b7bed36ea9da1b6eb50bb312a72d42dc95f7fbef Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 14 Jan 2023 14:24:41 -0800 Subject: [PATCH] Use FORCEACTIVE for OSMessage rather than FORCEFILES Former-commit-id: 99075cea0b9cee92dd87a40b5ee0c74757f1a365 --- ldscript.lcf | 8 +++++++- src/Dolphin/os/OSMessage.c | 2 -- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ldscript.lcf b/ldscript.lcf index 745bc445..85590b41 100644 --- a/ldscript.lcf +++ b/ldscript.lcf @@ -34,5 +34,11 @@ SECTIONS FORCEFILES { - OSMessage.o /* How is this even in the binary? */ +} + +FORCEACTIVE +{ + OSInitMessageQueue + OSSendMessage + OSReceiveMessage } diff --git a/src/Dolphin/os/OSMessage.c b/src/Dolphin/os/OSMessage.c index b1c697dd..db4d2fdd 100644 --- a/src/Dolphin/os/OSMessage.c +++ b/src/Dolphin/os/OSMessage.c @@ -60,7 +60,6 @@ BOOL OSReceiveMessage(OSMessageQueue* mq, OSMessage* msg, s32 flags) { return TRUE; } -#if 0 BOOL OSJamMessage(OSMessageQueue* mq, OSMessage msg, s32 flags) { BOOL enabled; @@ -85,4 +84,3 @@ BOOL OSJamMessage(OSMessageQueue* mq, OSMessage msg, s32 flags) { OSRestoreInterrupts(enabled); return TRUE; } -#endif