Fix SystemPathToSwitchPath platform issues and make sure to delete temporary NRO after sessions dispose (#293)
This commit is contained in:
parent
8b67297711
commit
c9fc52edb6
3 changed files with 7 additions and 8 deletions
|
@ -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}:/";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue