Increase MAX_PATH_LENGTH to support our own downloadedmaps names

This commit is contained in:
def 2019-03-12 18:43:03 +01:00
parent 984df7f49d
commit 6f9cfd5af1
5 changed files with 10 additions and 11 deletions

View file

@ -123,8 +123,8 @@ class CClient : public IClient, public CDemoPlayer::IListener
// pinging
int64 m_PingStartTime;
char m_aCurrentMap[256];
char m_aCurrentMapPath[CEditor::MAX_PATH_LENGTH];
char m_aCurrentMap[MAX_PATH_LENGTH];
char m_aCurrentMapPath[MAX_PATH_LENGTH];
char m_aTimeoutCodes[2][32];
bool m_aTimeoutCodeSent[2];

View file

@ -208,7 +208,7 @@ public:
int64 m_Lastheartbeat;
//static NETADDR4 master_server;
char m_aCurrentMap[64];
char m_aCurrentMap[MAX_PATH_LENGTH];
SHA256_DIGEST m_CurrentMapSha256;
unsigned m_CurrentMapCrc;
unsigned char *m_pCurrentMapData;

View file

@ -8,12 +8,6 @@
class CStorage : public IStorage
{
public:
enum
{
MAX_PATHS = 16,
MAX_PATH_LENGTH = 512
};
char m_aaStoragePaths[MAX_PATHS][MAX_PATH_LENGTH];
int m_NumPaths;
char m_aDatadir[MAX_PATH_LENGTH];

View file

@ -5,6 +5,12 @@
#include "kernel.h"
enum
{
MAX_PATHS = 16,
MAX_PATH_LENGTH = 512
};
class IStorage : public IInterface
{
MACRO_INTERFACE("storage", 0)

View file

@ -24,6 +24,7 @@
#include <engine/editor.h>
#include <engine/graphics.h>
#include <engine/sound.h>
#include <engine/storage.h>
#include "auto_map.h"
@ -830,8 +831,6 @@ public:
FILETYPE_MAP,
FILETYPE_IMG,
FILETYPE_SOUND,
MAX_PATH_LENGTH = 512
};
int m_FileDialogStorageType;