diff options
| author | Lywx <kiritodev01@gmail.com> | 2024-03-22 09:59:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-22 09:59:49 -0600 |
| commit | aaa68d2ebcb732d7d18af1a41a292c50182e7fd5 (patch) | |
| tree | 4b93c2a1899e6b2ebfcfe7cf4c2c06e8461c6aa4 /src/factories/mk64/TrackSections.cpp | |
| parent | 6e9f82312178d1fbc002a04ce97cf8b5add1f402 (diff) | |
Cleanup (#49)
* Auto debug info generation and some cleanup
* Cleaned dry code from segments
* Fixed gCurrentCompressionType bss bs
Diffstat (limited to 'src/factories/mk64/TrackSections.cpp')
| -rw-r--r-- | src/factories/mk64/TrackSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factories/mk64/TrackSections.cpp b/src/factories/mk64/TrackSections.cpp index 1c1319e..8e8690f 100644 --- a/src/factories/mk64/TrackSections.cpp +++ b/src/factories/mk64/TrackSections.cpp @@ -46,7 +46,7 @@ ExportResult MK64::TrackSectionsCodeExporter::Export(std::ostream &write, std::s } write << "};\n"; - return (IS_SEGMENTED(offset) ? SEGMENT_OFFSET(offset) : offset) + (sizeof(MK64::TrackSections) * sections.size()); + return offset + sections.size() * sizeof(MK64::TrackSections); } ExportResult MK64::TrackSectionsBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) { |
