diff options
author | Xpl0itR <xpl0itr@outlook.com> | 2020-06-23 01:32:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 10:32:07 +1000 |
commit | 2ed9db1fcdc679aab552dc1ddeaf1e80e05ee65c (patch) | |
tree | 22b77ae34a57960527e70ca5dc932856a297ac5d /Ryujinx.HLE/FileSystem/Content/ContentManager.cs | |
parent | fcd187ce42b11dc0e0a6bc93c227c79772a3496a (diff) |
Implement dlc management window (#1313)
* Implement dlc management window
* reduce repetition
* Implement per NCA toggling of DLC rather than per container
Diffstat (limited to 'Ryujinx.HLE/FileSystem/Content/ContentManager.cs')
-rw-r--r-- | Ryujinx.HLE/FileSystem/Content/ContentManager.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs index 839078e8..1b9ea143 100644 --- a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs +++ b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs @@ -4,7 +4,6 @@ using LibHac.Fs; using LibHac.FsSystem; using LibHac.FsSystem.NcaUtils; using LibHac.Ncm; -using LibHac.Spl; using Ryujinx.Common.Logging; using Ryujinx.HLE.Exceptions; using Ryujinx.HLE.HOS.Services.Time; @@ -241,6 +240,18 @@ namespace Ryujinx.HLE.FileSystem.Content } } + public void AddAocItem(ulong titleId, string containerPath, string ncaPath, bool enabled) + { + if (!_aocData.TryAdd(titleId, new AocItem(containerPath, ncaPath, enabled))) + { + Logger.PrintWarning(LogClass.Application, $"Duplicate AddOnContent detected. TitleId {titleId:X16}"); + } + else + { + Logger.PrintInfo(LogClass.Application, $"Found AddOnContent with TitleId {titleId:X16}"); + } + } + public void ClearAocData() => _aocData.Clear(); public int GetAocCount() => _aocData.Where(e => e.Value.Enabled).Count(); |