diff options
| author | inspectredc <inspectredc@gmail.com> | 2024-11-27 21:37:31 +0000 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-12-01 15:59:23 -0600 |
| commit | 09ade8bb7fc85f35dcabb2def2e2694f29739765 (patch) | |
| tree | 687d275e0da9d1c4974e3ac20a16b0c97f09d65e /src | |
| parent | 4bbd836d63937317b0164d3efb82c2d18be7a808 (diff) | |
pad autogen happens between all aligned assets
Diffstat (limited to 'src')
| -rw-r--r-- | src/Companion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 7461dc6..3fca4e3 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -888,7 +888,7 @@ void Companion::ProcessFile(YAML::Node root) { if(gap < 0) { stream << "// WARNING: Overlap detected between 0x" << std::hex << startptr << " and 0x" << end << " with size 0x" << std::abs(gap) << "\n"; SPDLOG_WARN("Overlap detected between 0x{:X} and 0x{:X} with size 0x{:X} on file {}", startptr, end, gap, this->gCurrentFile); - } else if(gap < 0x10 && gap >= alignment && end % 0x10 == 0 && this->gEnablePadGen) { + } else if(gap < 0x10 && gap >= alignment && end % alignment == 0 && this->gEnablePadGen) { SPDLOG_WARN("Gap detected between 0x{:X} and 0x{:X} with size 0x{:X} on file {}", startptr, end, gap, this->gCurrentFile); SPDLOG_WARN("Creating pad of 0x{:X} bytes", gap); const auto padfile = this->gCurrentDirectory.filename().string(); |
