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

Ifdef out network code for M&P

M&P contains network code despite M&P not being a Steam/GOG release (as
Steam/GOG releases are full releases of the game, not
custom-levels-only releases).

While unlocking achievements is already ifdef'd out in M&P, let's remove
the network code entirely to make sure people can't do other shenanigans
with M&P builds, and also to have a smaller binary size.
This commit is contained in:
Misa 2020-08-02 20:35:00 -07:00 committed by Ethan Lee
parent cec1a99d3b
commit bf64b95416
3 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,7 @@
#include "MakeAndPlay.h"
#ifndef MAKEANDPLAY
#include <stdint.h> #include <stdint.h>
/* Totally unimplemented right now! */ /* Totally unimplemented right now! */
@ -27,3 +31,5 @@ int32_t GOG_getAchievementProgress(const char *name)
void GOG_setAchievementProgress(const char *name, int32_t stat) void GOG_setAchievementProgress(const char *name, int32_t stat)
{ {
} }
#endif /* MAKEANDPLAY */

View file

@ -1,7 +1,18 @@
#include <stdint.h> #include <stdint.h>
#include "MakeAndPlay.h"
#define UNUSED(expr) (void)(expr) #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 #ifdef STEAM_NETWORK
#define STEAM_NUM 1 #define STEAM_NUM 1
#else #else

View file

@ -1,3 +1,7 @@
#include "MakeAndPlay.h"
#ifndef MAKEANDPLAY
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <SDL.h> #include <SDL.h>
@ -218,3 +222,5 @@ void STEAM_setAchievementProgress(const char *name, int32_t stat)
SteamAPI_ISteamUserStats_StoreStats(steamUserStats); SteamAPI_ISteamUserStats_StoreStats(steamUserStats);
} }
} }
#endif /* MAKEANDPLAY */