Ver código fonte

fs: Fix ContentManager content paths on Unix systems (#699)

* fs: Fix ContentManager content paths on Unix systems

* revert the line removing change
Thomas Guillemard 6 anos atrás
pai
commit
d8d5f2cbe7
1 arquivos alterados com 2 adições e 4 exclusões
  1. 2 4
      Ryujinx.HLE/FileSystem/Content/ContentManager.cs

+ 2 - 4
Ryujinx.HLE/FileSystem/Content/ContentManager.cs

@@ -87,8 +87,7 @@ namespace Ryujinx.HLE.FileSystem.Content
                         {
                             Nca nca = new Nca(_device.System.KeySet, ncaFile.AsStorage());
 
-                            string switchPath = Path.Combine(contentPathString + ":",
-                                                              ncaFile.Name.Replace(contentDirectory, string.Empty).TrimStart('\\'));
+                            string switchPath = contentPathString + ":/" + ncaFile.Name.Replace(contentDirectory, string.Empty).TrimStart(Path.DirectorySeparatorChar);
 
                             // Change path format to switch's
                             switchPath = switchPath.Replace('\\', '/');
@@ -115,8 +114,7 @@ namespace Ryujinx.HLE.FileSystem.Content
                         {
                             Nca nca = new Nca(_device.System.KeySet, ncaFile.AsStorage());
 
-                            string switchPath = Path.Combine(contentPathString + ":",
-                                                              filePath.Replace(contentDirectory, string.Empty).TrimStart('\\'));
+                            string switchPath = contentPathString + ":/" + filePath.Replace(contentDirectory, string.Empty).TrimStart(Path.DirectorySeparatorChar);
 
                             // Change path format to switch's
                             switchPath = switchPath.Replace('\\', '/');