mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 15:26:59 +00:00
fix stupid read size error leading to corrupt zip
This commit is contained in:
parent
88ca17236a
commit
5d34090952
@ -128,7 +128,7 @@ void TResourceManager::RefreshFiles() {
|
||||
beammp_debugf("sha256('{}'): {}", File, result);
|
||||
mMods.push_back(nlohmann::json {
|
||||
{ "file_name", std::filesystem::path(File).filename() },
|
||||
{ "file_size", Read },
|
||||
{ "file_size", std::filesystem::file_size(File) },
|
||||
{ "hash_algorithm", "sha256" },
|
||||
{ "hash", result },
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user