summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2026-02-02 15:05:51 -0500
committerGitHub <noreply@github.com>2026-02-02 15:05:51 -0500
commitc7de9162765452fc2787f3ba4f0092394067d603 (patch)
treedf1616469bb5667243b07405978fffcc84476e14 /Source/Core
parent6711d77b9901ed0a4418203db49ed4d8576e6fe0 (diff)
parentd87e8ab7ff66f3efcedeb5a0ab869b537933aada (diff)
Merge pull request #14316 from JoshuaVandaele/resourcefix
ResourcePack: Fix loading resource packs
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/UICommon/ResourcePack/ResourcePack.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp
index f755dae6f5..e4037062ed 100644
--- a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp
+++ b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp
@@ -97,10 +97,9 @@ ResourcePack::ResourcePack(const std::string& path) : m_path(path)
do
{
- std::string filename(256, '\0');
-
mz_zip_file* texture_info;
mz_zip_reader_entry_get_info(zip_reader, &texture_info);
+ std::string filename(texture_info->filename);
if (!filename.starts_with("textures/") || texture_info->uncompressed_size == 0)
continue;