diff options
Diffstat (limited to 'tools/src/asset_processor/offsets.cpp')
| -rw-r--r-- | tools/src/asset_processor/offsets.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/src/asset_processor/offsets.cpp b/tools/src/asset_processor/offsets.cpp index 827fe7a6..f865a85a 100644 --- a/tools/src/asset_processor/offsets.cpp +++ b/tools/src/asset_processor/offsets.cpp @@ -1,9 +1,10 @@ #include "offsets.h" -OffsetCalculator::OffsetCalculator(const std::filesystem::path& outputFile, int baseOffset_) - : output(outputFile), baseOffset(baseOffset_), lastEnd(0) { +OffsetCalculator::OffsetCalculator(const std::filesystem::path& asmOutputFile, const std::filesystem::path& cOutputFile, int baseOffset_) + : asmOutput(asmOutputFile), cOutput(cOutputFile), baseOffset(baseOffset_), lastEnd(0) { } void OffsetCalculator::addAsset(int start, const std::string& symbol) { - output << "\t.equiv offset_" << symbol << ", " << start - baseOffset << std::endl; + asmOutput << "\t.equiv offset_" << symbol << ", " << start - baseOffset << std::endl; + cOutput << "#define offset_" << symbol << " " << start - baseOffset << std::endl; }
\ No newline at end of file |
