1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

Fix creating archives in bsatool

This commit is contained in:
Alexei Kotov 2023-10-09 06:59:28 +03:00
parent 575f43876b
commit 1bd388faf3

View File

@ -320,6 +320,10 @@ int main(int argc, char** argv)
// Open file
// TODO: add a version argument for this mode after compressed BSA writing is a thing
if (info.mode == "create")
return call<Bsa::BSAFile>(info);
Bsa::BsaVersion bsaVersion = Bsa::BSAFile::detectVersion(info.filename);
switch (bsaVersion)