mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-05 04:25:08 +01:00
OSReceiveMessage hook: Only look into the message if the result is true
This commit is contained in:
parent
7a7a1f7a63
commit
9ee8085a64
@ -260,7 +260,7 @@ DECL(uint32_t, OSReceiveMessage, OSMessageQueue *queue, OSMessage *message, uint
|
||||
}
|
||||
int32_t res = real_OSReceiveMessage(queue, message, flags);
|
||||
if (queue == OSGetSystemMessageQueue()) {
|
||||
if (message != NULL) {
|
||||
if (message != NULL && res) {
|
||||
if (lastData0 != message->args[0]) {
|
||||
if (message->args[0] == 0xFACEF000) {
|
||||
CallHook(gPluginInformation, WUPS_LOADER_HOOK_ACQUIRED_FOREGROUND);
|
||||
|
Loading…
Reference in New Issue
Block a user