/// <summary> /// Checks if the length is too big to be a detectable file. /// </summary> /// <param name="length">File size</param> public static bool IsFileTooBig(long length) { if (length <= 0x10_0000) // 1 MB { return(false); } if (length > int.MaxValue) { return(true); } if (SaveUtil.IsSizeValid((int)length)) { return(false); } if (SAV3GCMemoryCard.IsMemoryCardSize(length)) { return(false); // pbr/GC have size > 1MB } return(true); }