Skip to content

Commit

Permalink
Un submoduled BytexDigital.Steam
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxlider committed Oct 12, 2024
1 parent daf8abc commit 499c470
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion BytexDigital.Steam
Submodule BytexDigital.Steam deleted from aa44bd
4 changes: 1 addition & 3 deletions FASTER/FASTER.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autoupdater.NET.Official" Version="1.9.2" />
<PackageReference Include="BytexDigital.Steam" Version="0.8.6-preview.1728774783" />
<PackageReference Include="FontAwesome.WPF" Version="4.7.0.9" />
<PackageReference Include="LiveCharts.Wpf" Version="0.9.7" />
<PackageReference Include="MahApps.Metro" Version="2.4.10" />
Expand All @@ -74,7 +75,4 @@
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="WindowsAPICodePack-Shell" Version="1.1.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BytexDigital.Steam\BytexDigital.Steam\BytexDigital.Steam.csproj" />
</ItemGroup>
</Project>
11 changes: 5 additions & 6 deletions FASTER/ViewModel/SteamUpdaterViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ public async Task<int> RunModsUpdater(ObservableCollection<ArmaMod> mods)

var downloadHandler = SteamContentClient.GetPublishedFileDataAsync(mod.WorkshopId, manifestId, tokenSource.Token);
DownloadForMultiple(downloadHandler.Result, mod.Path).Wait();

mod.Status = ArmaModStatus.UpToDate;
var nx = DateTime.UnixEpoch;
var ts = DateTime.UtcNow - nx;
mod.LocalLastUpdated = (ulong)ts.TotalSeconds;
}
catch (TaskCanceledException)
{
Expand All @@ -473,18 +478,12 @@ public async Task<int> RunModsUpdater(ObservableCollection<ArmaMod> mods)
mod.Status = ArmaModStatus.NotComplete;
Parameters.Output += $"\nError: {ex.Message}{(ex.InnerException != null ? $" Inner Exception: {ex.InnerException.Message}" : "")}";
}

sw.Stop();
mod.Status = ArmaModStatus.UpToDate;
var nx = DateTime.UnixEpoch;
var ts = DateTime.UtcNow - nx;
mod.LocalLastUpdated = (ulong) ts.TotalSeconds;

mod.CheckModSize();

Parameters.Output += $"\n Download {mod.WorkshopId} completed, it took {sw.Elapsed.Minutes + sw.Elapsed.Hours*60}m {sw.Elapsed.Seconds}s {sw.Elapsed.Milliseconds}ms";


}, TaskCreationOptions.LongRunning).ContinueWith((_) =>
{
finished += 1;
Expand Down

0 comments on commit 499c470

Please sign in to comment.