浏览代码

moved metadata to process

emmaus 7 年之前
父节点
当前提交
a9a2c0c2f5
共有 3 个文件被更改,包括 5 次插入4 次删除
  1. 2 2
      Ryujinx.HLE/OsHle/Horizon.cs
  2. 3 0
      Ryujinx.HLE/OsHle/Process.cs
  3. 0 2
      Ryujinx.HLE/OsHle/SystemStateMgr.cs

+ 2 - 2
Ryujinx.HLE/OsHle/Horizon.cs

@@ -85,13 +85,13 @@ namespace Ryujinx.HLE.OsHle
 
                 using (FileStream Input = new FileStream(File, FileMode.Open))
                 {
-                    SystemStateMgr.TitleMetadata = new Npdm(Input);
+                    MainProcess.Metadata = new Npdm(Input);
                 }
             }
 
             LoadNpdm("*.npdm");
 
-            if (!SystemStateMgr.TitleMetadata.Is64Bits)
+            if (!MainProcess.Metadata.Is64Bits)
             {
                 throw new Exception("32-bit titles are unsupported!");
             }

+ 3 - 0
Ryujinx.HLE/OsHle/Process.cs

@@ -4,6 +4,7 @@ using ChocolArm64.Memory;
 using ChocolArm64.State;
 using Ryujinx.HLE.Loaders;
 using Ryujinx.HLE.Loaders.Executables;
+using Ryujinx.HLE.Loaders.Npdm;
 using Ryujinx.HLE.Logging;
 using Ryujinx.HLE.OsHle.Diagnostics;
 using Ryujinx.HLE.OsHle.Exceptions;
@@ -48,6 +49,8 @@ namespace Ryujinx.HLE.OsHle
 
         public AppletStateMgr AppletState { get; private set; }
 
+        public Npdm Metadata { get; set; }
+
         private SvcHandler SvcHandler;
 
         private ConcurrentDictionary<int, AThread> TlsSlots;

+ 0 - 2
Ryujinx.HLE/OsHle/SystemStateMgr.cs

@@ -5,8 +5,6 @@ namespace Ryujinx.HLE.OsHle
 {
     public class SystemStateMgr
     {
-        internal static Npdm TitleMetadata { get; set; }
-
         internal static string[] LanguageCodes = new string[]
         {
             "ja",