From 6b279b8375596c7771c1e4399e4acc3b7516969a Mon Sep 17 00:00:00 2001 From: Nik Date: Sat, 17 May 2025 16:07:11 +0200 Subject: [PATCH] patterns/exfat: Fixed eval depth error --- patterns/exfat.hexpat | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/patterns/exfat.hexpat b/patterns/exfat.hexpat index 8e3da00..cc9c637 100644 --- a/patterns/exfat.hexpat +++ b/patterns/exfat.hexpat @@ -6,6 +6,8 @@ import std.mem; import std.string; import std.core; +#pragma eval_depth 0 + struct BootSector { std::mem::Bytes<3> jumpBoot; char fileSystemName[8]; @@ -243,11 +245,7 @@ struct DirectoryEntryChain { )] @ startingFatRange [[hidden]]; clusterSize = std::core::member_count(clusters); } - try { - ContinuousDirectoryEntry data @ 0; - } catch { - std::warning(std::format("Error trying to parse ContinuousDirectoryEntry at {:#x} (Cluster index {} with cluster size of {})", startOfClusterHeap + clusterIndex * bytesPerCluster, clusterIndex, clusterSize)); - } + ContinuousDirectoryEntry data @ 0; try { auto nextClusterIndex = clusters[clusterSize - 1]; if (nextClusterIndex != 0xffffffff && nextClusterIndex != 0) {