mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(ArchiveFormat.IsValidEntryName): new static method.
This commit is contained in:
parent
f8eb7968ca
commit
cb54e20e56
@ -133,6 +133,14 @@ namespace GameRes
|
||||
{
|
||||
return count > 0 && count < 0x20000;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether <paramref name="name"/> represents a valid archive entry name.
|
||||
/// </summary>
|
||||
public static bool IsValidEntryName (string name)
|
||||
{
|
||||
return !string.IsNullOrWhiteSpace (name) && !Path.IsPathRooted (name);
|
||||
}
|
||||
}
|
||||
|
||||
public enum ArchiveOperation
|
||||
|
Loading…
x
Reference in New Issue
Block a user