Update SaveHandlerFooterRTC.cs (#4321)

add edge case for FlashGBX
This commit is contained in:
Ibis Liven 2024-07-14 11:25:33 -04:00 committed by GitHub
parent 2205332326
commit fc509200b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,8 @@ public sealed class SaveHandlerFooterRTC : ISaveHandler
private static bool IsPlausibleFooterSize(long size)
{
if (size == 0x07) // exception for lesserkuma/FlashGBX >v2.0
return true;
if ((size & 1) != 0) // must be even
return false;
return size is not (> MaxFooter or < MinFooter);