Caching: qualify FormatNumber at the single-file flush guard

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 16:43:37 +02:00
commit afd4858b9a

View file

@ -3565,7 +3565,7 @@ namespace GameCult.Caching
return;
}
if (FormatNumber(header) is int number && number > 2)
if (CultPersistedStoreSnapshot.FormatNumber(header) is int number && number > 2)
throw new NotSupportedException(
$"Store {FileInfo.FullName} is {header}, a newer format than this runtime reads " +
$"({CultPersistedStoreSnapshot.FormatV1} and {CultPersistedStoreSnapshot.FormatV2}); a flush would downgrade it, so none was written.");