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:
Lioncash 2019-05-27 12:33:46 -04:00
parent 204af41e73
commit 57701cd988
1 changed files with 2 additions and 2 deletions

View File

@ -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)