mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-03 04:56:10 +00:00
Merge pull request #14316 from JoshuaVandaele/resourcefix
ResourcePack: Fix loading resource packs
This commit is contained in:
commit
c7de916276
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user