mirror of
https://github.com/ModOrganizer2/modorganizer-bsapacker.git
synced 2026-07-27 14:06:14 -07:00
29 lines
608 B
C++
29 lines
608 B
C++
#include "ArchiveExtensionService.h"
|
|
|
|
#include "NexusId.h"
|
|
|
|
namespace BsaPacker
|
|
{
|
|
ArchiveExtensionService::ArchiveExtensionService(const IModContext* modContext)
|
|
: m_ModContext(modContext)
|
|
{
|
|
}
|
|
|
|
QString ArchiveExtensionService::GetFileExtension() const
|
|
{
|
|
switch (this->m_ModContext->GetNexusId()) {
|
|
case NexusId::Morrowind:
|
|
case NexusId::Oblivion:
|
|
case NexusId::Fallout3:
|
|
case NexusId::NewVegas:
|
|
case NexusId::Skyrim:
|
|
case NexusId::SkyrimSE:
|
|
return QStringLiteral(".bsa");
|
|
case NexusId::Fallout4:
|
|
return QStringLiteral(".ba2");
|
|
default:
|
|
return QString();
|
|
}
|
|
}
|
|
}
|