mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-01-23 19:16:21 +00:00
Memory locking is dependent on the GB hardware, not the size of the program, so allow lock ranges to be manually specified.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ void EightBit::Memory::clear() {
|
||||
|
||||
void EightBit::Memory::loadRom(const std::string& path, uint16_t offset) {
|
||||
auto size = loadMemory(path, offset);
|
||||
std::fill(m_locked.begin() + offset, m_locked.begin() + offset + size, true);
|
||||
lock(offset, size);
|
||||
}
|
||||
|
||||
void EightBit::Memory::loadRam(const std::string& path, uint16_t offset) {
|
||||
|
||||
Reference in New Issue
Block a user