From d87e8ab7ff66f3efcedeb5a0ab869b537933aada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Mon, 2 Feb 2026 20:01:58 +0100 Subject: [PATCH] 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 --- Source/Core/UICommon/ResourcePack/ResourcePack.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp index f755dae6f59..e4037062ed3 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;