mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Implement platform_is_steam_overlay_attached for unix
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "../cmdline.h"
|
||||
#include "../openrct2.h"
|
||||
#include <dlfcn.h>
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user