mirror of
https://github.com/ModOrganizer2/modorganizer-bsapacker.git
synced 2026-07-27 14:06:14 -07:00
Change extension checks so they can reach the false condition
This commit is contained in:
+2
-1
@@ -31,7 +31,8 @@ namespace BsaPacker
|
||||
|
||||
QStringList ModContext::GetPlugins(const QDir& modDirectory) const
|
||||
{
|
||||
const QString extension = (this->GetNexusId() == NexusId::Fallout4 || NexusId::Starfield) ? ".ba2" : ".bsa";
|
||||
const int nexusId = this->GetNexusId();
|
||||
const QString extension = (nexusId == NexusId::Fallout4 || nexusId == NexusId::Starfield) ? ".ba2" : ".bsa";
|
||||
const std::function<QString(QString)> replace_extension = [&](QString fname) {
|
||||
return fname.replace(fname.lastIndexOf('.'), 4, extension);
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace BsaPacker
|
||||
const QString& pluginName = this->m_PackerDialog->SelectedPluginItem();
|
||||
const bool needsNewName = this->m_PackerDialog->IsNewFilename();
|
||||
const QString& archiveName = ModDtoFactory::ArchiveNameValidator(modName, pluginName, needsNewName);
|
||||
const QString& archiveExtension = (nexusId == FALLOUT_4_NEXUS_ID || STARFIELD_NEXUS_ID)
|
||||
const QString& archiveExtension = (nexusId == FALLOUT_4_NEXUS_ID || nexusId == STARFIELD_NEXUS_ID)
|
||||
? QStringLiteral(".ba2")
|
||||
: QStringLiteral(".bsa");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user