diff --git a/desktop_version/src/GOGNetwork.c b/desktop_version/src/GOGNetwork.c index b3d72b4c..9755fa4b 100644 --- a/desktop_version/src/GOGNetwork.c +++ b/desktop_version/src/GOGNetwork.c @@ -1,3 +1,7 @@ +#include "MakeAndPlay.h" + +#ifndef MAKEANDPLAY + #include /* Totally unimplemented right now! */ @@ -27,3 +31,5 @@ int32_t GOG_getAchievementProgress(const char *name) void GOG_setAchievementProgress(const char *name, int32_t stat) { } + +#endif /* MAKEANDPLAY */ diff --git a/desktop_version/src/Network.c b/desktop_version/src/Network.c index 15937a81..a6e0c00b 100644 --- a/desktop_version/src/Network.c +++ b/desktop_version/src/Network.c @@ -1,7 +1,18 @@ #include +#include "MakeAndPlay.h" + #define UNUSED(expr) (void)(expr) +#ifdef MAKEANDPLAY + #ifdef STEAM_NETWORK + #undef STEAM_NETWORK + #endif + #ifdef GOG_NETWORK + #undef GOG_NETWORK + #endif +#endif + #ifdef STEAM_NETWORK #define STEAM_NUM 1 #else diff --git a/desktop_version/src/SteamNetwork.c b/desktop_version/src/SteamNetwork.c index 892d85ab..87afa397 100644 --- a/desktop_version/src/SteamNetwork.c +++ b/desktop_version/src/SteamNetwork.c @@ -1,3 +1,7 @@ +#include "MakeAndPlay.h" + +#ifndef MAKEANDPLAY + #include #include #include @@ -218,3 +222,5 @@ void STEAM_setAchievementProgress(const char *name, int32_t stat) SteamAPI_ISteamUserStats_StoreStats(steamUserStats); } } + +#endif /* MAKEANDPLAY */