Implement platform_is_steam_overlay_attached for unix

This commit is contained in:
Alexander Overvoorde 2015-10-03 23:10:42 +02:00
parent 51377fc960
commit f6b7121c23
1 changed files with 5 additions and 0 deletions

View File

@ -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