diff options
| author | JMC47 <JMC4789@gmail.com> | 2026-02-02 15:05:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-02 15:05:51 -0500 |
| commit | c7de9162765452fc2787f3ba4f0092394067d603 (patch) | |
| tree | df1616469bb5667243b07405978fffcc84476e14 /Source/Core | |
| parent | 6711d77b9901ed0a4418203db49ed4d8576e6fe0 (diff) | |
| parent | d87e8ab7ff66f3efcedeb5a0ab869b537933aada (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.cpp | 3 |
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; |
