From 43b53df0a0524635fa3c1b22325a87b73c618876 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sat, 28 May 2022 01:09:32 +0100 Subject: [PATCH] Patches: Make cheats_ws.zip search case insensitive --- common/ZipHelpers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/ZipHelpers.h b/common/ZipHelpers.h index 2b78517cef..283ce37d01 100644 --- a/common/ZipHelpers.h +++ b/common/ZipHelpers.h @@ -82,13 +82,13 @@ template static inline std::optional ReadFileInZipToContainer(zip_t* zip, const char* name) { std::optional ret; - const zip_int64_t file_index = zip_name_locate(zip, name, 0); + const zip_int64_t file_index = zip_name_locate(zip, name, ZIP_FL_NOCASE); if (file_index >= 0) { zip_stat_t zst; - if (zip_stat_index(zip, file_index, 0, &zst) == 0) + if (zip_stat_index(zip, file_index, ZIP_FL_NOCASE, &zst) == 0) { - zip_file_t* zf = zip_fopen_index(zip, file_index, 0); + zip_file_t* zf = zip_fopen_index(zip, file_index, ZIP_FL_NOCASE); if (zf) { ret = T();