summaryrefslogtreecommitdiff
path: root/tools/src/asset_processor/offsets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/asset_processor/offsets.cpp')
-rw-r--r--tools/src/asset_processor/offsets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/asset_processor/offsets.cpp b/tools/src/asset_processor/offsets.cpp
index f865a85a..631bb05e 100644
--- a/tools/src/asset_processor/offsets.cpp
+++ b/tools/src/asset_processor/offsets.cpp
@@ -5,6 +5,6 @@ OffsetCalculator::OffsetCalculator(const std::filesystem::path& asmOutputFile, c
}
void OffsetCalculator::addAsset(int start, const std::string& symbol) {
- asmOutput << "\t.equiv offset_" << symbol << ", " << start - baseOffset << std::endl;
- cOutput << "#define offset_" << symbol << " " << start - baseOffset << std::endl;
+ asmOutput << "\t.equiv offset_" << symbol << ", 0x" << std::hex << start - baseOffset << std::endl;
+ cOutput << "#define offset_" << symbol << " 0x" << std::hex << start - baseOffset << std::endl;
} \ No newline at end of file