mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Add Empty to Path types.
This commit is contained in:
parent
4655364b98
commit
c91a28ae1d
1 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ namespace Penumbra.Util
|
||||||
public static explicit operator RelPath( string relPath )
|
public static explicit operator RelPath( string relPath )
|
||||||
=> new( relPath );
|
=> new( relPath );
|
||||||
|
|
||||||
|
public bool Empty
|
||||||
|
=> _path.Length == 0;
|
||||||
|
|
||||||
public int CompareTo( object rhs )
|
public int CompareTo( object rhs )
|
||||||
{
|
{
|
||||||
return rhs switch
|
return rhs switch
|
||||||
|
|
@ -127,6 +130,9 @@ namespace Penumbra.Util
|
||||||
public static explicit operator GamePath( string gamePath )
|
public static explicit operator GamePath( string gamePath )
|
||||||
=> new( gamePath );
|
=> new( gamePath );
|
||||||
|
|
||||||
|
public bool Empty
|
||||||
|
=> _path.Length == 0;
|
||||||
|
|
||||||
public string Filename()
|
public string Filename()
|
||||||
{
|
{
|
||||||
var idx = _path.LastIndexOf( "/", StringComparison.Ordinal );
|
var idx = _path.LastIndexOf( "/", StringComparison.Ordinal );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue