diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2026-02-02 20:01:58 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2026-02-02 20:01:58 +0100 |
| commit | d87e8ab7ff66f3efcedeb5a0ab869b537933aada (patch) | |
| tree | df1616469bb5667243b07405978fffcc84476e14 /Source/Core | |
| parent | 6711d77b9901ed0a4418203db49ed4d8576e6fe0 (diff) | |
ResourcePack: Fix loading resource packs
This is something I missed when updating minizip, this mistake made it so resource packs didn't find any textures
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; |
