Move server configuration to dedicated server only. Separate error logging for client and server, in preparation of creating a log file on the dedicated server.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "avatarmanager.h"
|
||||
#include <net/net_helper.h>
|
||||
#include <net/socket_msg.h>
|
||||
#include <core/loghelper.h>
|
||||
#include <core/crypthelper.h>
|
||||
@@ -30,13 +31,8 @@
|
||||
#include <fstream>
|
||||
#include <cstring>
|
||||
|
||||
#ifdef POKERTH_DEDICATED_SERVER
|
||||
#define MAX_NUMBER_OF_FILES 1024
|
||||
#define MAX_AVATAR_CACHE_AGE 2592000 // 1 Month
|
||||
#else
|
||||
#define MAX_NUMBER_OF_FILES 256
|
||||
#define MAX_AVATAR_CACHE_AGE 86400
|
||||
#endif
|
||||
#define MAX_NUMBER_OF_FILES GetMaxNumberOfAvatarFiles()
|
||||
#define MAX_AVATAR_CACHE_AGE GetMaxAvatarCacheAgeSec()
|
||||
|
||||
#define PNG_HEADER "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a"
|
||||
#define PNG_HEADER_SIZE (sizeof(PNG_HEADER) - 1)
|
||||
|
||||
Reference in New Issue
Block a user