mirror of https://github.com/OpenRCT2/OpenRCT2.git
Implement platform_is_steam_overlay_attached for unix
This commit is contained in:
parent
51377fc960
commit
f6b7121c23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue