Skip to content

Commit 4702ccd

Browse files
authored
Merge pull request #222 from Foxlider/EF-cDLC-push
cDLC Branch push
2 parents e4d8ab2 + 79fc308 commit 4702ccd

12 files changed

+69
-5
lines changed

FASTER/App.config

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
<setting name="usingRFDlc" serializeAs="String">
8383
<value>False</value>
8484
</setting>
85+
<setting name="usingEFDlc" serializeAs="String">
86+
<value>False</value>
87+
</setting>
8588
</FASTER.Properties.Settings>
8689
</userSettings>
8790
</configuration>

FASTER/FASTER.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<SignAssembly>True</SignAssembly>
1111
<AssemblyOriginatorKeyFile>FASTERKey.snk</AssemblyOriginatorKeyFile>
1212
<Authors>Keelah Fox, Jupster, Canno.n</Authors>
13-
<Version>1.9.6.1</Version>
13+
<Version>1.9.6.2</Version>
1414
<Company>FoxliCorp.</Company>
1515
<Description>Fox's Arma Server Tool Extended Rewrite</Description>
1616
<Copyright>Copyright © 2019</Copyright>

FASTER/Models/ServerProfile.cs

+15
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public class ServerProfile : INotifyPropertyChanged
6161
private bool _wsDlcChecked;
6262
private bool _speDlcChecked;
6363
private bool _rfDlcChecked;
64+
private bool _efDlcChecked;
6465
private bool _enableHT = true;
6566
private bool _enableRanking;
6667

@@ -214,6 +215,16 @@ public bool RFDLCChecked
214215
}
215216
}
216217

218+
public bool EFDLCChecked
219+
{
220+
get => _efDlcChecked;
221+
set
222+
{
223+
_efDlcChecked = value;
224+
RaisePropertyChanged(nameof(EFDLCChecked));
225+
}
226+
}
227+
217228
public bool EnableHyperThreading
218229
{
219230
get => _enableHT;
@@ -504,6 +515,10 @@ public string GetDlcAndPlayerMods(string playerMods)
504515
{
505516
_ = mods.Append($"{playerMods};");
506517
}
518+
if (EFDLCChecked)
519+
{
520+
_ = mods.Append("ef;");
521+
}
507522
return !string.IsNullOrWhiteSpace(mods.ToString()) ? $" \"-mod={mods}\"" : "";
508523
}
509524

FASTER/Models/StaticData.cs

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ internal static class StaticData
2121
"Harkness31",
2222
"Ace",
2323
"bojothebigman",
24+
"EmPtY.zip",
25+
"OverlordZorn",
26+
"Jupster",
2427
};
2528

2629
/// <summary>

FASTER/Models/SteamUpdaterModel.cs

+11
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,17 @@ public bool UsingRFDlc
172172
}
173173
}
174174

175+
public bool UsingEFDlc
176+
{
177+
get => Settings.Default.usingEFDlc;
178+
set
179+
{
180+
Settings.Default.usingEFDlc = value;
181+
Settings.Default.Save();
182+
RaisePropertyChanged(nameof(UsingEFDlc));
183+
}
184+
}
185+
175186
public string ApiKey
176187
{
177188
get => !string.IsNullOrEmpty(Settings.Default.SteamAPIKey)

FASTER/Properties/Settings.Designer.cs

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FASTER/Properties/Settings.settings

+3
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,8 @@
9292
<Setting Name="usingRFDlc" Type="System.Boolean" Scope="User">
9393
<Value Profile="(Default)">False</Value>
9494
</Setting>
95+
<Setting Name="usingEFDlc" Type="System.Boolean" Scope="User">
96+
<Value Profile="(Default)">False</Value>
97+
</Setting>
9598
</Settings>
9699
</SettingsFile>

FASTER/ViewModel/ProfileViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ internal async Task CopyModKeys()
391391

392392
internal async Task ClearModKeys()
393393
{
394-
var ignoredKeys = new[] {"a3.bikey", "a3c.bikey", "gm.bikey", "ws.bikey", "csla.bikey", "vn.bikey", "spe.bikey", "rf.bikey" };
394+
var ignoredKeys = new[] {"a3.bikey", "a3c.bikey", "gm.bikey", "ws.bikey", "csla.bikey", "vn.bikey", "spe.bikey", "rf.bikey", "ef.bikey" };
395395
if (Directory.Exists(Path.Combine(Profile.ArmaPath, "keys")))
396396
{
397397
foreach (var keyFile in Directory.GetFiles(Path.Combine(Profile.ArmaPath, "keys")))

FASTER/ViewModel/SteamUpdaterViewModel.cs

+11-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public async Task UpdateClick()
133133
Analytics.TrackEvent("Updater - Clicked Update", new Dictionary<string, string>
134134
{
135135
{"Name", Properties.Settings.Default.steamUserName},
136-
{"DLCs", $"{(Parameters.UsingGMDlc ? "GM " : "")}{(Parameters.UsingCSLADlc? "CSLA " : "")}{(Parameters.UsingPFDlc ? "SOG " : "")}{(Parameters.UsingWSDlc ? "WS " : "")}{(Parameters.UsingSPEDlc ? "SPE " : "")}{(Parameters.UsingRFDlc ? "RF " : "")}"},
136+
{"DLCs", $"{(Parameters.UsingGMDlc ? "GM " : "")}{(Parameters.UsingCSLADlc? "CSLA " : "")}{(Parameters.UsingPFDlc ? "SOG " : "")}{(Parameters.UsingWSDlc ? "WS " : "")}{(Parameters.UsingSPEDlc ? "SPE " : "")}{(Parameters.UsingRFDlc ? "RF " : "")}{(Parameters.UsingEFDlc ? "EF " : "")}"},
137137
{"Branch", $"{(Parameters.UsingPerfBinaries? "Profiling" : "Public")}"}
138138
});
139139

@@ -156,6 +156,7 @@ public async Task UpdateClick()
156156
{233794, "Arma 3 Server Creator DLC - SOGPF"},
157157
{233795, "Arma 3 Server Creator DLC - WS"},
158158
{233799, "Arma 3 Server Creator DLC - RF"},
159+
{233798, "Arma 3 Server Creator DLC - EF"},
159160
};
160161

161162
//IReadOnlyList<Depot> depotsList;
@@ -257,6 +258,15 @@ public async Task UpdateClick()
257258
null));
258259
}
259260

261+
if (Parameters.UsingEFDlc)
262+
{
263+
Parameters.Output += "\nChecking Arma 3 Server Creator DLC - EF...";
264+
depotsDownload.Add((
265+
depotsIDs.FirstOrDefault(d => d.Value == "Arma 3 Server Creator DLC - EF").Key,
266+
"creatordlc",
267+
null));
268+
}
269+
260270
await RunServerUpdater(Parameters.InstallDirectory, appId, depotsDownload);
261271

262272
Parameters.Output += "\n\nAll Done ! ";

FASTER/Views/Profile.xaml

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<CheckBox IsChecked="{Binding Profile.WSDLCChecked}" Content="Western Sahara DLC" Margin="10,3" HorizontalAlignment="Left"/>
7272
<CheckBox IsChecked="{Binding Profile.SPEDLCChecked}" Content="Spearhead 1944 DLC" Margin="10,3" HorizontalAlignment="Left"/>
7373
<CheckBox IsChecked="{Binding Profile.RFDLCChecked}" Content="Reaction Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
74+
<CheckBox IsChecked="{Binding Profile.EFDLCChecked}" Content="Expeditionary Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
7475
<StackPanel Height="10"/>
7576
</StackPanel>
7677
</GroupBox>
@@ -114,6 +115,7 @@
114115
<CheckBox IsChecked="{Binding Profile.WSDLCChecked}" Content="Western Sahara DLC" Margin="10,3" HorizontalAlignment="Left"/>
115116
<CheckBox IsChecked="{Binding Profile.SPEDLCChecked}" Content="Spearhead 1944 DLC" Margin="10,3" HorizontalAlignment="Left"/>
116117
<CheckBox IsChecked="{Binding Profile.RFDLCChecked}" Content="Reaction Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
118+
<CheckBox IsChecked="{Binding Profile.EFDLCChecked}" Content="Expeditionary Forces DLC" Margin="10,3" HorizontalAlignment="Left"/>
117119
</StackPanel>
118120
</Expander>
119121
</Canvas>-->

FASTER/Views/Updater.xaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@
119119
<CheckBox IsChecked="{Binding Parameters.UsingSPEDlc}" Content="Spearhead 1944 DLC"
120120
Margin="10,3" HorizontalAlignment="Left"/>
121121
<CheckBox IsChecked="{Binding Parameters.UsingRFDlc}" Content="Reaction Forces DLC"
122-
Margin="10,3" HorizontalAlignment="Left"/>
122+
Margin="10,3" HorizontalAlignment="Left"/>
123+
<CheckBox IsChecked="{Binding Parameters.UsingEFDlc}" Content="Expeditionary Forces DLC"
124+
Margin="10,3" HorizontalAlignment="Left"/>
123125
</StackPanel>
124126
<Button Style="{StaticResource MahApps.Styles.Button.MetroSquare.Accent}" BorderThickness="0" Grid.Row="4" Content="Update" Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Click="Update_Click"/>
125127
</Grid>

FASTER_Version.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<item>
3-
<version>1.9.6.1</version>
3+
<version>1.9.6.2</version>
44
<url>https://github.com/Foxlider/FASTER/releases/latest/download/Release_x64.zip</url>
55
<changelog>https://github.com/Foxlider/FASTER/releases</changelog>
66
<mandatory>true</mandatory>

0 commit comments

Comments
 (0)