mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 16:49:27 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -15,10 +15,10 @@
|
||||||
#include "UICommon/ResourcePack/Manager.h"
|
#include "UICommon/ResourcePack/Manager.h"
|
||||||
#include "UICommon/ResourcePack/Manifest.h"
|
#include "UICommon/ResourcePack/Manifest.h"
|
||||||
|
|
||||||
static const char* TEXTURE_PATH = "Load/Textures/";
|
|
||||||
|
|
||||||
namespace ResourcePack
|
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
|
// Since minzip doesn't provide a way to unzip a file of a length > 65535, we have to implement
|
||||||
// this ourselves
|
// this ourselves
|
||||||
static bool ReadCurrentFileUnlimited(unzFile file, std::vector<char>& destination)
|
static bool ReadCurrentFileUnlimited(unzFile file, std::vector<char>& destination)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue