From 4472196b484d7814176cd2786e603584bb9fd169 Mon Sep 17 00:00:00 2001
From: Xpl0itR <xpl0itr@outlook.com>
Date: Tue, 23 Jun 2020 12:25:12 +0100
Subject: Import DLC title key from ticket when loading into content manager
 (#1318)

---
 Ryujinx.HLE/FileSystem/Content/ContentManager.cs | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'Ryujinx.HLE/FileSystem/Content/ContentManager.cs')

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);
+                }
             }
         }
 
-- 
cgit v1.2.3-70-g09d2