mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
File fixes.
This commit is contained in:
parent
0ba0c6d057
commit
5ed80c753f
2 changed files with 3 additions and 5 deletions
|
|
@ -70,8 +70,7 @@ public readonly struct Utf8GamePath : IEquatable< Utf8GamePath >, IComparable< U
|
|||
return true;
|
||||
}
|
||||
|
||||
var substring = s!.Replace( '\\', '/' );
|
||||
substring.TrimStart( '/' );
|
||||
var substring = s!.Replace( '\\', '/' ).TrimStart( '/' );
|
||||
if( substring.Length > MaxGamePathLength )
|
||||
{
|
||||
return false;
|
||||
|
|
@ -99,7 +98,7 @@ public readonly struct Utf8GamePath : IEquatable< Utf8GamePath >, IComparable< U
|
|||
return false;
|
||||
}
|
||||
|
||||
var substring = file.FullName[ baseDir.FullName.Length.. ];
|
||||
var substring = file.FullName[ ( baseDir.FullName.Length + 1 ).. ];
|
||||
return FromString( substring, out path, toLower );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,8 +37,7 @@ public readonly struct Utf8RelPath : IEquatable< Utf8RelPath >, IComparable< Utf
|
|||
return true;
|
||||
}
|
||||
|
||||
var substring = s!.Replace( '/', '\\' );
|
||||
substring.TrimStart( '\\' );
|
||||
var substring = s!.Replace( '/', '\\' ).TrimStart('\\');
|
||||
if( substring.Length > MaxRelPathLength )
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue