mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Increase MAX_PATH_LENGTH to support our own downloadedmaps names
This commit is contained in:
parent
984df7f49d
commit
6f9cfd5af1
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -5,6 +5,12 @@
|
|||
|
||||
#include "kernel.h"
|
||||
|
||||
enum
|
||||
{
|
||||
MAX_PATHS = 16,
|
||||
MAX_PATH_LENGTH = 512
|
||||
};
|
||||
|
||||
class IStorage : public IInterface
|
||||
{
|
||||
MACRO_INTERFACE("storage", 0)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue