From f6b7121c23ec860635a8134fae2809831911c28e Mon Sep 17 00:00:00 2001 From: Alexander Overvoorde Date: Sat, 3 Oct 2015 23:10:42 +0200 Subject: [PATCH] Implement platform_is_steam_overlay_attached for unix --- src/platform/unix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platform/unix.c b/src/platform/unix.c index 602709bb63..e38b55671f 100644 --- a/src/platform/unix.c +++ b/src/platform/unix.c @@ -23,6 +23,7 @@ #include "../cmdline.h" #include "../openrct2.h" +#include /** * Unix, linux and fallback entry point to OpenRCT2. @@ -42,5 +43,9 @@ char platform_get_path_separator() } */ +bool platform_is_steam_overlay_attached() { + return dlopen("gameoverlayrenderer.so", RTLD_NOLOAD) != NULL; +} + #endif #endif