mirror of
https://github.com/zeldaret/tmc
synced 2026-06-08 12:27:21 -04:00
cleaned asset_processor to build without warnings
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include "offsets.h"
|
||||
|
||||
OffsetCalculator::OffsetCalculator(std::filesystem::path outputFile, int baseOffset) : baseOffset(baseOffset) {
|
||||
output = std::ofstream(outputFile);
|
||||
OffsetCalculator::OffsetCalculator(const std::filesystem::path& outputFile, int baseOffset_)
|
||||
: output(outputFile), baseOffset(baseOffset_) {
|
||||
}
|
||||
|
||||
void OffsetCalculator::addAsset(int start, std::string symbol) {
|
||||
this->output << "\t.equiv offset_" << symbol << ", " << start - this->baseOffset << std::endl;
|
||||
void OffsetCalculator::addAsset(int start, const std::string& symbol) {
|
||||
output << "\t.equiv offset_" << symbol << ", " << start - baseOffset << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user