(ArchiveFormat.IsSaneCount): new static method.

This commit is contained in:
morkt 2015-07-11 10:19:46 +04:00
parent 9fd2defa07
commit 57b0115d41

View File

@ -234,6 +234,11 @@ namespace GameRes
return GetOptions<OptType> (args.Options); return GetOptions<OptType> (args.Options);
} }
protected static bool IsSaneCount (int count)
{
return count > 0 && count < 0x20000;
}
} }
public delegate void ParametersRequestEventHandler (object sender, ParametersRequestEventArgs e); public delegate void ParametersRequestEventHandler (object sender, ParametersRequestEventArgs e);