From 5c836604c0f07c1a8d3f408e5b6250c3abc9abfe Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 4 Aug 2020 21:50:54 -0400 Subject: [PATCH] Reenable MaserSystem code. Accidental/poor branch management is evidenced here. --- Machines/MasterSystem/MasterSystem.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Machines/MasterSystem/MasterSystem.cpp b/Machines/MasterSystem/MasterSystem.cpp index 9c0bf61e4..f43e999ea 100644 --- a/Machines/MasterSystem/MasterSystem.cpp +++ b/Machines/MasterSystem/MasterSystem.cpp @@ -120,11 +120,11 @@ class ConcreteMachine: if(!target.media.cartridges.empty()) { cartridge_ = target.media.cartridges[0]->get_segments()[0].data; } -// if(cartridge_.size() < 48*1024) { -// std::size_t new_space = 48*1024 - cartridge_.size(); -// cartridge_.resize(48*1024); -// memset(&cartridge_[48*1024 - new_space], 0xff, new_space); -// } + if(cartridge_.size() < 48*1024) { + std::size_t new_space = 48*1024 - cartridge_.size(); + cartridge_.resize(48*1024); + memset(&cartridge_[48*1024 - new_space], 0xff, new_space); + } if(paging_scheme_ == Target::PagingScheme::Codemasters) { // The Codemasters cartridges start with pages 0, 1 and 0 again initially visible.