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

This is a wild guess but I think I assigned init at some point

This commit is contained in:
Ethan Lee 2020-01-13 11:25:54 -05:00
parent c1fb67707d
commit 4b24206294

View file

@ -6,7 +6,7 @@
extern void name##_shutdown(); \ extern void name##_shutdown(); \
extern void name##_update(); \ extern void name##_update(); \
extern void name##_unlockAchievement(); \ extern void name##_unlockAchievement(); \
extern void name##_getAchievementProgress(const char *name); \ extern int32_t name##_getAchievementProgress(const char *name); \
extern void name##_setAchievementProgress(const char *name, int32_t stat); extern void name##_setAchievementProgress(const char *name, int32_t stat);
DECLARE_BACKEND(STEAM) DECLARE_BACKEND(STEAM)
DECLARE_BACKEND(GOG) DECLARE_BACKEND(GOG)
@ -30,11 +30,11 @@ int NETWORK_init()
int32_t i, any = 0; int32_t i, any = 0;
#define ASSIGN_BACKEND(name, index) \ #define ASSIGN_BACKEND(name, index) \
backends[index].Init = name##_init; \ backends[index].Init = name##_init; \
backends[index].Init = name##_init; \ backends[index].Shutdown = name##_shutdown; \
backends[index].Init = name##_init; \ backends[index].Update = name##_update; \
backends[index].Init = name##_init; \ backends[index].UnlockAchievement = name##_unlockAchievement; \
backends[index].Init = name##_init; \ backends[index].GetAchievementProgress = name##_getAchievementProgress; \
backends[index].Init = name##_init; backends[index].SetAchievementProgress = name##_setAchievementProgress;
ASSIGN_BACKEND(STEAM, 0) ASSIGN_BACKEND(STEAM, 0)
ASSIGN_BACKEND(GOG, 1) ASSIGN_BACKEND(GOG, 1)
#undef ASSIGN_BACKEND #undef ASSIGN_BACKEND