1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

FreeBSD: Add workaround for libsteam

Steam isn't supported on FreeBSD so add a workaround.

Signed-off-by: Emmanuel Vadot <manu@freebsd.org>
This commit is contained in:
Emmanuel Vadot 2020-01-10 22:38:33 +01:00 committed by Ethan Lee
parent 699d8c4590
commit 90decede25

View file

@ -15,7 +15,7 @@
#define NETWORK_LIBRARY "steam_api.dll" #define NETWORK_LIBRARY "steam_api.dll"
#elif defined(__APPLE__) #elif defined(__APPLE__)
#define NETWORK_LIBRARY "libsteam_api.dylib" #define NETWORK_LIBRARY "libsteam_api.dylib"
#elif defined(__linux__) #elif defined(__linux__) || defined(__FreeBSD__)
#define NETWORK_LIBRARY "libsteam_api.so" #define NETWORK_LIBRARY "libsteam_api.so"
#else #else
#error NETWORK_LIBRARY: Unrecognized platform! #error NETWORK_LIBRARY: Unrecognized platform!
@ -97,6 +97,9 @@ static void ClearPointers()
int NETWORK_init() int NETWORK_init()
{ {
#if defined(__FreeBSD__)
return 1;
#endif
intptr_t steamClient; intptr_t steamClient;
int32_t steamUser, steamPipe; int32_t steamUser, steamPipe;