From 9b23b3e24bc0825d2c7756c8625c3813862c5f80 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 11 Oct 2024 17:49:14 -0600 Subject: [PATCH] Fix input only handling on rm2 --- shared/libblight_client/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/libblight_client/main.cpp b/shared/libblight_client/main.cpp index 5a073b38..ea402c6e 100644 --- a/shared/libblight_client/main.cpp +++ b/shared/libblight_client/main.cpp @@ -567,7 +567,7 @@ extern "C" { __attribute__((visibility("default"))) int msgget(key_t key, int msgflg){ static const auto func_msgget = (int(*)(key_t, int))dlsym(RTLD_NEXT, "msgget"); - if(!IS_INITIALIZED){ + if(!IS_INITIALIZED || !DO_HANDLE_FB){ return func_msgget(key, msgflg); } // Catch rm2fb ipc @@ -584,7 +584,7 @@ extern "C" { __attribute__((visibility("default"))) int msgsnd(int msqid, const void* msgp, size_t msgsz, int msgflg){ static const auto func_msgsnd = (int(*)(int, const void*, size_t, int))dlsym(RTLD_NEXT, "msgsnd"); - if(!IS_INITIALIZED){ + if(!IS_INITIALIZED || !DO_HANDLE_FB){ return func_msgsnd(msqid, msgp, msgsz, msgflg); } if(msqid == msgq){