aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/VirtualFileSystem.cs
diff options
context:
space:
mode:
authorThomas Guillemard <thog@protonmail.com>2018-07-19 20:44:52 +0200
committergdkchan <gab.dark.100@gmail.com>2018-07-19 15:44:52 -0300
commitc9fc52edb6abc014d5d5671c1634b01ace48de2f (patch)
tree3f6762a8c10cd235d24b9b1bbe8bd3b99dfd3ac9 /Ryujinx.HLE/VirtualFileSystem.cs
parent8b67297711003dfac432acb3278c5a406617e662 (diff)
Fix SystemPathToSwitchPath platform issues and make sure to delete temporary NRO after sessions dispose (#293)
Diffstat (limited to 'Ryujinx.HLE/VirtualFileSystem.cs')
-rw-r--r--Ryujinx.HLE/VirtualFileSystem.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/VirtualFileSystem.cs b/Ryujinx.HLE/VirtualFileSystem.cs
index 38df81f8..df1fc9db 100644
--- a/Ryujinx.HLE/VirtualFileSystem.cs
+++ b/Ryujinx.HLE/VirtualFileSystem.cs
@@ -57,11 +57,11 @@ namespace Ryujinx.HLE
public string SystemPathToSwitchPath(string SystemPath)
{
- string BaseSystemPath = GetBasePath() + "/";
+ string BaseSystemPath = GetBasePath() + Path.DirectorySeparatorChar;
if (SystemPath.StartsWith(BaseSystemPath))
{
string RawPath = SystemPath.Replace(BaseSystemPath, "");
- int FirstSeparatorOffset = RawPath.IndexOf('/');
+ int FirstSeparatorOffset = RawPath.IndexOf(Path.DirectorySeparatorChar);
if (FirstSeparatorOffset == -1)
{
return $"{RawPath}:/";