diff options
| author | notyourav <65437533+notyourav@users.noreply.github.com> | 2022-01-20 10:32:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 10:32:37 -0800 |
| commit | 1ab5c34eae72bb57e2a997c9bdc9074037f69811 (patch) | |
| tree | 8975198273bd3ed0f0a08f426de01b5823ac9eac /tools/src/asset_processor/offsets.cpp | |
| parent | 2cf294d02dfa8a483827d4df65ea42834bf29cf5 (diff) | |
| parent | 578152af198232082c8b1ebb0a2d0314d4ade12c (diff) | |
Merge pull request #201 from Henny022p/refactorTools
Refactor tools
Diffstat (limited to 'tools/src/asset_processor/offsets.cpp')
| -rw-r--r-- | tools/src/asset_processor/offsets.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/src/asset_processor/offsets.cpp b/tools/src/asset_processor/offsets.cpp new file mode 100644 index 00000000..827fe7a6 --- /dev/null +++ b/tools/src/asset_processor/offsets.cpp @@ -0,0 +1,9 @@ +#include "offsets.h" + +OffsetCalculator::OffsetCalculator(const std::filesystem::path& outputFile, int baseOffset_) + : output(outputFile), baseOffset(baseOffset_), lastEnd(0) { +} + +void OffsetCalculator::addAsset(int start, const std::string& symbol) { + output << "\t.equiv offset_" << symbol << ", " << start - baseOffset << std::endl; +}
\ No newline at end of file |
