mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +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…
Reference in New Issue
Block a user