More Vi/NvFlinger/NvDrv stubs, allow paths starting with //, do not allow paths that don't start with at least a /, increase map region size
This commit is contained in:
parent
4038e63de1
commit
4f177c9ee7
6 changed files with 50 additions and 4 deletions
|
@ -18,10 +18,18 @@ namespace Ryujinx.Core
|
|||
|
||||
public string GetFullPath(string BasePath, string FileName)
|
||||
{
|
||||
if (FileName.StartsWith('/'))
|
||||
if (FileName.StartsWith("//"))
|
||||
{
|
||||
FileName = FileName.Substring(2);
|
||||
}
|
||||
else if (FileName.StartsWith('/'))
|
||||
{
|
||||
FileName = FileName.Substring(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
string FullPath = Path.GetFullPath(Path.Combine(BasePath, FileName));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue