diff --git a/GoldbergGUI.Core/Models/GoldbergModel.cs b/GoldbergGUI.Core/Models/GoldbergModel.cs
index 40972bc..4eb2503 100644
--- a/GoldbergGUI.Core/Models/GoldbergModel.cs
+++ b/GoldbergGUI.Core/Models/GoldbergModel.cs
@@ -67,8 +67,14 @@ namespace GoldbergGUI.Core.Models
public class DlcApp : SteamApp
{
+ ///
+ /// ID of depot (optional)
+ ///
public int? DepotId { get; set; }
- public string DepotName { get; set; }
+ //public string DepotName { get; set; }
+ ///
+ /// Path to DLC (relative to Steam API DLL) (optional)
+ ///
public string AppPath { get; set; }
}
diff --git a/GoldbergGUI.Core/Services/GoldbergService.cs b/GoldbergGUI.Core/Services/GoldbergService.cs
index 2d84f36..1283ce9 100644
--- a/GoldbergGUI.Core/Services/GoldbergService.cs
+++ b/GoldbergGUI.Core/Services/GoldbergService.cs
@@ -231,11 +231,11 @@ namespace GoldbergGUI.Core.Services
{
var match = expression.Match(line);
if (match.Success)
- dlcList.Add(new SteamApp
+ dlcList.Add(new DlcApp()
{
AppId = Convert.ToInt32(match.Groups["id"].Value),
Name = match.Groups["name"].Value
- } as DlcApp);
+ });
}
}
else
diff --git a/GoldbergGUI.Core/Services/SteamService.cs b/GoldbergGUI.Core/Services/SteamService.cs
index f3042d7..83fdf90 100644
--- a/GoldbergGUI.Core/Services/SteamService.cs
+++ b/GoldbergGUI.Core/Services/SteamService.cs
@@ -180,10 +180,10 @@ namespace GoldbergGUI.Core.Services
{
steamAppDetails.DLC.ForEach(async x =>
{
- var result = await _db.Table().Where(z => z.type == AppTypeDlc)
+ var result = await _db.Table().Where(z => z.type == AppTypeDlc)
.FirstOrDefaultAsync(y => y.AppId.Equals(x)).ConfigureAwait(true)
- ?? new SteamApp {AppId = x, Name = $"Unknown DLC {x}"};
- dlcList.Add(result as DlcApp);
+ ?? new DlcApp() {AppId = x, Name = $"Unknown DLC {x}"};
+ dlcList.Add(result);
_log.Debug($"{result.AppId}={result.Name}");
});
@@ -229,15 +229,15 @@ namespace GoldbergGUI.Core.Services
var dlcName = query3 != null
? query3[1].Text().Replace("\n", "").Trim()
: $"Unknown DLC {dlcId}";
- var dlcApp = new SteamApp {AppId = Convert.ToInt32(dlcId), Name = dlcName};
+ var dlcApp = new DlcApp {AppId = Convert.ToInt32(dlcId), Name = dlcName};
var i = dlcList.FindIndex(x => x.AppId.Equals(dlcApp.AppId));
if (i > -1)
{
- if (dlcList[i].Name.Contains("Unknown DLC")) dlcList[i] = dlcApp as DlcApp;
+ if (dlcList[i].Name.Contains("Unknown DLC")) dlcList[i] = dlcApp;
}
else
{
- dlcList.Add(dlcApp as DlcApp);
+ dlcList.Add(dlcApp);
}
}
diff --git a/GoldbergGUI.WPF/Views/MainView.xaml b/GoldbergGUI.WPF/Views/MainView.xaml
index e14ebc1..69cdf2d 100644
--- a/GoldbergGUI.WPF/Views/MainView.xaml
+++ b/GoldbergGUI.WPF/Views/MainView.xaml
@@ -57,7 +57,7 @@
-
+