Browse Source

Import DLC title key from ticket when loading into content manager (#1318)

Xpl0itR 5 năm trước cách đây
mục cha
commit
4472196b48
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      Ryujinx.HLE/FileSystem/Content/ContentManager.cs

+ 6 - 0
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);
+                }
             }
         }