Update following gamebryo updates for myGamesPath() in game feature. (#6)

This commit is contained in:
Mikaël Capelle
2024-06-22 08:29:32 +02:00
committed by GitHub
parent 3ce9006f4d
commit 960493fc41
3 changed files with 4 additions and 10 deletions
+2 -6
View File
@@ -5,10 +5,6 @@
#include <QRegularExpression>
Fallout76DataArchives::Fallout76DataArchives(const QDir& myGamesDir)
: GamebryoDataArchives(myGamesDir)
{}
QStringList Fallout76DataArchives::vanillaArchives() const
{
return {"SeventySix - Animations.ba2",
@@ -86,7 +82,7 @@ QStringList Fallout76DataArchives::archives(const MOBase::IProfile* profile) con
QString iniFile =
profile->localSettingsEnabled()
? QDir(profile->absolutePath()).absoluteFilePath("Fallout76.ini")
: m_LocalGameDir.absoluteFilePath("Fallout76.ini");
: localGameDirectory().absoluteFilePath("Fallout76.ini");
result.append(getArchivesFromKey(iniFile, "sResourceIndexFileList"));
result.append(getArchivesFromKey(iniFile, "sResourceStartUpArchiveList"));
@@ -104,7 +100,7 @@ void Fallout76DataArchives::writeArchiveList(MOBase::IProfile* profile,
QString iniFile =
profile->localSettingsEnabled()
? QDir(profile->absolutePath()).absoluteFilePath("Fallout76.ini")
: m_LocalGameDir.absoluteFilePath("Fallout76.ini");
: localGameDirectory().absoluteFilePath("Fallout76.ini");
QStringList sResourceIndexFileList = {};
QStringList sResourceStartUpArchiveList = {};
+1 -3
View File
@@ -13,11 +13,9 @@ class IProfile;
class Fallout76DataArchives : public GamebryoDataArchives
{
public:
Fallout76DataArchives(const QDir& myGamesDir);
using GamebryoDataArchives::GamebryoDataArchives;
public:
virtual QStringList vanillaArchives() const override;
virtual QStringList sResourceIndexFileList() const;
virtual QStringList sResourceStartUpArchiveList() const;
+1 -1
View File
@@ -36,7 +36,7 @@ bool GameFallout76::init(IOrganizer* moInfo)
}
registerFeature(std::make_shared<Fallout76ScriptExtender>(this));
registerFeature(std::make_shared<Fallout76DataArchives>(myGamesPath()));
registerFeature(std::make_shared<Fallout76DataArchives>(this));
registerFeature(std::make_shared<Fallout76ModDataChecker>(this));
registerFeature(
std::make_shared<Fallout76ModDataContent>(m_Organizer->gameFeatures()));