diff options
| author | Henny022p <info@henny022.de> | 2021-11-23 05:40:41 +0100 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2021-11-23 05:40:41 +0100 |
| commit | bc4a8577f3f139a8d0b420e2decbbb9701d25c4c (patch) | |
| tree | 180a00ab6fb3a51ec6776747610e56e231f4140e /tools/src/asset_processor/offsets.cpp | |
| parent | 47a3e614a01598cf28f9f484c5405b522fd789fe (diff) | |
moved asset_processor to new location
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..45d991a3 --- /dev/null +++ b/tools/src/asset_processor/offsets.cpp @@ -0,0 +1,9 @@ +#include "offsets.h" + +OffsetCalculator::OffsetCalculator(std::filesystem::path outputFile, int baseOffset): baseOffset(baseOffset) { + output = std::ofstream(outputFile); +} + +void OffsetCalculator::addAsset(int start, std::string symbol) { + this->output << "\t.equiv offset_" << symbol << ", " << start - this->baseOffset << std::endl; +}
\ No newline at end of file |
