Skip to content
Permalink
Browse files

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.
  • Loading branch information...
lioncash committed May 27, 2019
1 parent 204af41 commit 57701cd988c3c88cc0a9295f2ad2c55c5b29dc82
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Core/UICommon/ResourcePack/ResourcePack.cpp
@@ -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)

0 comments on commit 57701cd

Please sign in to comment.
You can’t perform that action at this time.