summaryrefslogtreecommitdiff
path: root/tools/src/asset_processor/offsets.cpp
blob: 48ed41398097a0dfe9e9d34afd62e113d3a00dbb (plain)
1
2
3
4
5
6
7
8
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;
}