mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-20 12:47:06 +00:00
Use SectionTypeInfo struct member functions for section type info
This commit is contained in:
@@ -42,6 +42,8 @@ struct Section {
|
||||
std::deque<Patch> patches;
|
||||
std::vector<uint8_t> data;
|
||||
|
||||
SectionTypeInfo const &typeInfo() const { return sectionTypeInfo[type]; }
|
||||
|
||||
uint32_t getID() const; // ID of the section in the object file (`UINT32_MAX` if none)
|
||||
bool isSizeKnown() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user