mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Some RGBLINK refactoring
- Consistently refer to `Section` fragments/unions as "pieces" (renaming `.nextu`) - Remove `Symbol`'s `.label()` accessors (use `std::get<Label>`) - Move some `Label`-related logic into `Symbol` methods
This commit is contained in:
@@ -580,14 +580,14 @@ static void applyFilePatches(Section §ion, Section &dataSection) {
|
||||
}
|
||||
}
|
||||
|
||||
// Applies all of a section's patches, iterating over "components" of unionized sections
|
||||
// Applies all of a section's patches, iterating over "pieces" of unionized sections
|
||||
static void applyPatches(Section §ion) {
|
||||
if (!sectTypeHasData(section.type)) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (Section *component = §ion; component; component = component->nextu.get()) {
|
||||
applyFilePatches(*component, section);
|
||||
for (Section *piece = §ion; piece != nullptr; piece = piece->nextPiece.get()) {
|
||||
applyFilePatches(*piece, section);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user