1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 11:09:42 +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)