diff options
author | Thomas Guillemard <me@thog.eu> | 2019-06-13 22:46:15 +0200 |
---|---|---|
committer | Ac_K <Acoustik666@gmail.com> | 2019-06-13 22:46:14 +0200 |
commit | d8d5f2cbe703aa2ef2d1bb9211b3056da94b0168 (patch) | |
tree | 47a3e2e0799c871b94b6f0a4ef178c6393be9fe0 /Ryujinx.HLE/FileSystem/Content/ContentManager.cs | |
parent | d87c5375f1aac092cef7f71b9c1085904b8f78d7 (diff) |
fs: Fix ContentManager content paths on Unix systems (#699)
* fs: Fix ContentManager content paths on Unix systems
* revert the line removing change
Diffstat (limited to 'Ryujinx.HLE/FileSystem/Content/ContentManager.cs')
-rw-r--r-- | Ryujinx.HLE/FileSystem/Content/ContentManager.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs b/Ryujinx.HLE/FileSystem/Content/ContentManager.cs index 40109f1c..67c3f263 100644 --- a/Ryujinx.HLE/FileSystem/Content/ContentManager.cs +++ b/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('\\', '/'); |