From 7f30b49421f79e009360ba7a4e3901ee1183837b Mon Sep 17 00:00:00 2001 From: dashodanger Date: Mon, 24 Jun 2024 23:48:56 -0600 Subject: [PATCH] Tweak ZIPF_AddFile --- source/lib_zip.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib_zip.cc b/source/lib_zip.cc index 28b9639a0..0ab4df235 100644 --- a/source/lib_zip.cc +++ b/source/lib_zip.cc @@ -66,7 +66,7 @@ bool ZIPF_AddFile(const std::string &filename, std::string_view directory) return false; } return mz_zip_writer_add_file(zip_writer, - !directory.empty() ? PathAppend(directory, filename).c_str() : filename.c_str(), + !directory.empty() ? PathAppend(directory, GetFilename(filename)).c_str() : GetFilename(filename).c_str(), filename.c_str(), NULL, 0, MZ_DEFAULT_COMPRESSION); }