From fd5a7f434171a33b1b3eb2a3e112fdcee6d9262d Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sun, 26 Dec 2021 23:57:11 -0500 Subject: Add flag to force unaccounted to be static (#216) * add forced static * add flag for forcing unaccounted to be static * Update README.md Co-authored-by: Louis --- ZAPD/ZFile.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ZAPD/ZFile.cpp') diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp index f7f3f69..22a6a45 100644 --- a/ZAPD/ZFile.cpp +++ b/ZAPD/ZFile.cpp @@ -1305,7 +1305,10 @@ bool ZFile::HandleUnaccountedAddress(offset_t currentAddress, offset_t lastAddr, StringHelper::Sprintf("%s_%s_%06X", name.c_str(), unaccountedPrefix.c_str(), unaccountedAddress), diff, src); + decl->isUnaccounted = true; + if (Globals::Instance->forceUnaccountedStatic) + decl->staticConf = StaticConfig::On; if (nonZeroUnaccounted) { -- cgit v1.2.3