Add Empty to Path types.

This commit is contained in:
Ottermandias 2021-04-19 17:16:52 +02:00
parent 4655364b98
commit c91a28ae1d

View file

@ -51,6 +51,9 @@ namespace Penumbra.Util
public static explicit operator RelPath( string relPath )
=> new( relPath );
public bool Empty
=> _path.Length == 0;
public int CompareTo( object rhs )
{
return rhs switch
@ -127,6 +130,9 @@ namespace Penumbra.Util
public static explicit operator GamePath( string gamePath )
=> new( gamePath );
public bool Empty
=> _path.Length == 0;
public string Filename()
{
var idx = _path.LastIndexOf( "/", StringComparison.Ordinal );