Files
modorganizer-bsapacker/src/ArchiveAutoService.cpp
T

16 lines
364 B
C++
Raw Normal View History

2019-11-13 21:19:08 +00:00
#include <bsapacker/ArchiveAutoService.h>
namespace BsaPacker
{
2023-10-08 03:02:20 -05:00
bool ArchiveAutoService::CreateBSA(libbsarch::bs_archive_auto* archive, const QString& archiveName, const bsa_archive_type_e type) const
2019-11-13 21:19:08 +00:00
{
2023-10-08 03:02:20 -05:00
try {
archive->save_to_disk(archiveName.toStdString());
}
catch (std::exception e) {
return false;
}
return true;
2019-11-13 21:19:08 +00:00
}
} // namespace BsaPacker