aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
diff options
context:
space:
mode:
authorXpl0itR <xpl0itr@outlook.com>2020-06-23 12:25:12 +0100
committerThog <me@thog.eu>2020-06-23 16:48:27 +0200
commit4472196b484d7814176cd2786e603584bb9fd169 (patch)
tree24d6738c79c9c951e4e42cc9c1b7b20aa595bde5 /Ryujinx.HLE/FileSystem/Content/ContentManager.cs
parentb312c82a2c5a6d6b1abc6ce44c30af1b09765f62 (diff)
Import DLC title key from ticket when loading into content manager (#1318)
Diffstat (limited to 'Ryujinx.HLE/FileSystem/Content/ContentManager.cs')
-rw-r--r--Ryujinx.HLE/FileSystem/Content/ContentManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
index 1b9ea143..2bcb2266 100644
--- a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
+++ b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs
@@ -249,6 +249,12 @@ namespace Ryujinx.HLE.FileSystem.Content
else
{
Logger.PrintInfo(LogClass.Application, $"Found AddOnContent with TitleId {titleId:X16}");
+
+ using (FileStream fileStream = File.OpenRead(containerPath))
+ using (PartitionFileSystem pfs = new PartitionFileSystem(fileStream.AsStorage()))
+ {
+ _virtualFileSystem.ImportTickets(pfs);
+ }
}
}