Skip to content

Commit

Permalink
Add settings to allow downloads from Fallout 4 London.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 28, 2024
1 parent 1e13717 commit 426086b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game_fallout4_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Splash by %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="gamefallout4.cpp" line="321"/>
<location filename="gamefallout4.cpp" line="331"/>
<source>sTestFile entries are present</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="gamefallout4.cpp" line="329"/>
<location filename="gamefallout4.cpp" line="339"/>
<source>&lt;p&gt;You have sTestFile settings in your Fallout4Custom.ini. These must be removed or the game will not read the plugins.txt file. Management is disabled.&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
Expand Down
12 changes: 11 additions & 1 deletion src/gamefallout4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ MOBase::VersionInfo GameFallout4::version() const

QList<PluginSetting> GameFallout4::settings() const
{
return QList<PluginSetting>();
return {PluginSetting("fo4london_downloads", "allow Fallout London downloads",
QVariant(false))};
}

MappingType GameFallout4::mappings() const
Expand Down Expand Up @@ -227,6 +228,15 @@ QString GameFallout4::gameNexusName() const
return "fallout4";
}

QStringList GameFallout4::validShortNames() const
{
QStringList shortNames{"Fallout4"};
if (m_Organizer->pluginSetting(name(), "fo4london_downloads").toBool()) {
shortNames.append("Fallout4London");
}
return shortNames;
}

QStringList GameFallout4::iniFiles() const
{
return {"fallout4.ini", "fallout4prefs.ini", "fallout4custom.ini"};
Expand Down
1 change: 1 addition & 0 deletions src/gamefallout4.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class GameFallout4 : public GameGamebryo, public MOBase::IPluginDiagnose
virtual QStringList gameVariants() const override;
virtual QString gameShortName() const override;
virtual QString gameNexusName() const override;
virtual QStringList validShortNames() const override;
virtual QStringList iniFiles() const override;
virtual QStringList DLCPlugins() const override;
virtual QStringList CCPlugins() const override;
Expand Down

0 comments on commit 426086b

Please sign in to comment.