Use a vector for emitting section patches

Turns out this makes errors be emitted in source order,
which is far more intuitive and pleasant-looking!
This commit is contained in:
ISSOtm authored and Rangi committed 2026-10-17 14:39:51 -04:00
1 parent 6883dd903e
commit d766efe95d
12 files changed
+60 -61

No files matched your search

+1 -2
View File
@@ -3,7 +3,6 @@
#ifndef RGBDS_ASM_SECTION_HPP
#define RGBDS_ASM_SECTION_HPP
#include <deque>
#include <memory>
#include <optional>
#include <stddef.h>
@@ -39,7 +38,7 @@ struct Section {
uint32_t bank;
uint8_t align; // Exactly as specified in `ALIGN[]`
uint16_t alignOfs;
std::deque<Patch> patches;
std::vector<Patch> patches;
std::vector<uint8_t> data;
SectionTypeInfo const &typeInfo() const { return sectionTypeInfo[type]; }