Removed TargetMemoryDescriptor dependency in MemoryRegion class (in preparation for saving & loading memory regions from Bloom's project settings file)

This commit is contained in:
Nav
2022-01-16 18:50:12 +00:00
parent 5ae7bd020c
commit b9d05e03eb
16 changed files with 136 additions and 96 deletions

View File

@@ -40,6 +40,10 @@ namespace Bloom::Targets
[[nodiscard]] bool contains(std::uint32_t address) const {
return address >= this->startAddress && address <= this->endAddress;
}
[[nodiscard]] bool contains(const TargetMemoryAddressRange& addressRange) const {
return this->startAddress <= addressRange.startAddress && this->endAddress >= addressRange.endAddress;
}
};
struct TargetMemoryDescriptor