diff --git a/GameRes/GameRes.cs b/GameRes/GameRes.cs index a6b7f009..c9d9e296 100644 --- a/GameRes/GameRes.cs +++ b/GameRes/GameRes.cs @@ -234,6 +234,11 @@ namespace GameRes return GetOptions (args.Options); } + + protected static bool IsSaneCount (int count) + { + return count > 0 && count < 0x20000; + } } public delegate void ParametersRequestEventHandler (object sender, ParametersRequestEventArgs e);