Merge pull request #36 from Liderate/ttw-support

Support TTW, Enderal, and EnderalSE
This commit is contained in:
Al
2024-03-30 12:10:39 +01:00
committed by GitHub
5 changed files with 22 additions and 1 deletions
+2
View File
@@ -23,8 +23,10 @@ namespace BsaPacker
case NexusId::Fallout3:
case NexusId::NewVegas:
case NexusId::Skyrim:
case NexusId::Enderal:
return std::vector<bsa_archive_type_e> { baFO3 };
case NexusId::SkyrimSE:
case NexusId::EnderalSE:
return std::vector<bsa_archive_type_e> { baSSE };
case NexusId::Fallout4:
case NexusId::Starfield:
+2
View File
@@ -18,6 +18,8 @@ namespace BsaPacker
case NexusId::NewVegas:
case NexusId::Skyrim:
case NexusId::SkyrimSE:
case NexusId::Enderal:
case NexusId::EnderalSE:
return QStringLiteral(".bsa");
case NexusId::Fallout4:
case NexusId::Starfield:
+2
View File
@@ -36,8 +36,10 @@ namespace BsaPacker
case NexusId::NewVegas:
return std::make_unique<NewVegasDummyPluginService>(m_FileWriterService, m_DummyPluginLogic);
case NexusId::Skyrim:
case NexusId::Enderal:
return std::make_unique<SkyrimDummyPluginService>(m_FileWriterService, m_DummyPluginLogic);
case NexusId::SkyrimSE:
case NexusId::EnderalSE:
return std::make_unique<SkyrimSEDummyPluginService>(m_FileWriterService, m_DummyPluginLogic);
case NexusId::Fallout4:
return std::make_unique<Fallout4DummyPluginService>(m_FileWriterService, m_DummyPluginLogic);
+13 -1
View File
@@ -26,7 +26,19 @@ namespace BsaPacker
int ModContext::GetNexusId() const
{
const MOBase::IPluginGame* managedGame = this->m_Organizer->managedGame();
return managedGame->nexusGameID();
int nexusId = managedGame->nexusGameID();
// Games with no Nexus page have an ID of 0. Use primarySources in that case
if (nexusId != 0) {
return nexusId;
}
if (!managedGame->primarySources().isEmpty()) {
QString primarySource = managedGame->primarySources().first();
if (primarySource == "FalloutNV") { // TTW
return NexusId::NewVegas;
}
}
return nexusId;
}
QStringList ModContext::GetPlugins(const QDir& modDirectory) const
+3
View File
@@ -5,6 +5,7 @@ namespace BsaPacker
{
enum NexusId
{
// Skyrim VR, Fallout 4 VR, and TTW don't have Nexus pages so are 0
Morrowind = 100,
Oblivion = 101,
Fallout3 = 120,
@@ -12,6 +13,8 @@ namespace BsaPacker
Skyrim = 110,
SkyrimSE = 1704,
Fallout4 = 1151,
Enderal = 2736,
EnderalSE = 3685,
Starfield = 4187
};
} // namespace BsaPacker