Fixed issues with language selection
Fixed game name field not resetting properly
This commit is contained in:
parent
933e84cdaa
commit
a5ca4ceb33
5 changed files with 43 additions and 47 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace auto_creamapi.Models
|
||||
{
|
||||
|
@ -15,6 +16,20 @@ namespace auto_creamapi.Models
|
|||
public bool ExtraProtection { get; set; }
|
||||
public bool ForceOffline { get; set; }
|
||||
public List<SteamApp> DlcList { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var value = $"AppID: {AppId}\n" +
|
||||
$"Language: {Language}\n" +
|
||||
$"UnlockAll: {UnlockAll}\n" +
|
||||
$"ExtraProtection: {ExtraProtection}\n" +
|
||||
$"ForceOffline: {ForceOffline}\n" +
|
||||
$"DLC ({DlcList.Count}):\n[\n";
|
||||
if (DlcList.Count > 0)
|
||||
value = DlcList.Aggregate(value, (current, x) => current + $" {x.AppId}={x.Name},\n");
|
||||
value += "]";
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class CreamConfigModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue