1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 18:16:46 +02:00

Add ability to compile without game support

This commit is contained in:
jfreegman
2021-01-18 22:37:14 -05:00
parent 7aeb1a0aac
commit 7abf6388f8
19 changed files with 121 additions and 17 deletions

View File

@ -26,10 +26,13 @@
#include <time.h>
#include "file_transfers.h"
#include "game_base.h"
#include "toxic.h"
#include "windows.h"
#ifdef GAMES
#include "game_base.h"
#endif
struct LastOnline {
uint64_t last_on;
struct tm tm;
@ -43,6 +46,8 @@ struct ConferenceInvite {
bool pending;
};
#ifdef GAMES
struct GameInvite {
uint8_t *data;
size_t data_length;
@ -51,6 +56,8 @@ struct GameInvite {
bool pending;
};
#endif // GAMES
typedef struct {
char name[TOXIC_MAX_NAME_LENGTH + 1];
uint16_t namelength;
@ -67,7 +74,10 @@ typedef struct {
struct LastOnline last_online;
struct ConferenceInvite conference_invite;
#ifdef GAMES
struct GameInvite game_invite;
#endif
struct FileTransfer file_receiver[MAX_FILES];
struct FileTransfer file_sender[MAX_FILES];