Skip to content

Commit

Permalink
Tweak ZIPF_AddFile
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jun 25, 2024
1 parent 7b62433 commit 7f30b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lib_zip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7f30b49

Please sign in to comment.