mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
fs: Fix ContentManager content paths on Unix systems (#699)
* fs: Fix ContentManager content paths on Unix systems * revert the line removing change
This commit is contained in:
parent
d87c5375f1
commit
d8d5f2cbe7
|
@ -87,8 +87,7 @@ namespace Ryujinx.HLE.FileSystem.Content
|
||||||
{
|
{
|
||||||
Nca nca = new Nca(_device.System.KeySet, ncaFile.AsStorage());
|
Nca nca = new Nca(_device.System.KeySet, ncaFile.AsStorage());
|
||||||
|
|
||||||
string switchPath = Path.Combine(contentPathString + ":",
|
string switchPath = contentPathString + ":/" + ncaFile.Name.Replace(contentDirectory, string.Empty).TrimStart(Path.DirectorySeparatorChar);
|
||||||
ncaFile.Name.Replace(contentDirectory, string.Empty).TrimStart('\\'));
|
|
||||||
|
|
||||||
// Change path format to switch's
|
// Change path format to switch's
|
||||||
switchPath = switchPath.Replace('\\', '/');
|
switchPath = switchPath.Replace('\\', '/');
|
||||||
|
@ -115,8 +114,7 @@ namespace Ryujinx.HLE.FileSystem.Content
|
||||||
{
|
{
|
||||||
Nca nca = new Nca(_device.System.KeySet, ncaFile.AsStorage());
|
Nca nca = new Nca(_device.System.KeySet, ncaFile.AsStorage());
|
||||||
|
|
||||||
string switchPath = Path.Combine(contentPathString + ":",
|
string switchPath = contentPathString + ":/" + filePath.Replace(contentDirectory, string.Empty).TrimStart(Path.DirectorySeparatorChar);
|
||||||
filePath.Replace(contentDirectory, string.Empty).TrimStart('\\'));
|
|
||||||
|
|
||||||
// Change path format to switch's
|
// Change path format to switch's
|
||||||
switchPath = switchPath.Replace('\\', '/');
|
switchPath = switchPath.Replace('\\', '/');
|
||||||
|
|
Loading…
Reference in a new issue