UICommon/ResourcePack: Make TEXTURE_PATH a regular array
Same behavior, only it doesn't unnecessarily store a pointer in the executable. While we're at it, make it constexpr and move it into the namespace.
This commit is contained in:
parent
204af41e73
commit
57701cd988
|
@ -15,10 +15,10 @@
|
|||
#include "UICommon/ResourcePack/Manager.h"
|
||||
#include "UICommon/ResourcePack/Manifest.h"
|
||||
|
||||
static const char* TEXTURE_PATH = "Load/Textures/";
|
||||
|
||||
namespace ResourcePack
|
||||
{
|
||||
constexpr char TEXTURE_PATH[] = "Load/Textures/";
|
||||
|
||||
// Since minzip doesn't provide a way to unzip a file of a length > 65535, we have to implement
|
||||
// this ourselves
|
||||
static bool ReadCurrentFileUnlimited(unzFile file, std::vector<char>& destination)
|
||||
|
|
Loading…
Reference in New Issue