src/memory/mappers/std_banked.cc
/*
 * Deletes the calling StdBanked object.
 *
 * Assumes that the fixed bank is the final allocated bank.
 */
Deletes the calling StdBanked object.
Assumes that the fixed bank is the final allocated bank.
Deletes the calling StdBanked object . Assumes that the fixed bank is the final allocated bank .
StdBanked::~StdBanked(void) {
  delete[] ram_;
  delete[] bat_;
  delete[] nametable_[0];
  delete[] nametable_[3];
  delete[] pattern_table_;
  for (size_t i = 0; i < (fixed_bank_ + 1U); i++) {
    delete[] cart_[i];
  }
  return;
}
StdBanked :: ~ StdBanked ( void ) { delete [ ] ram_ ; delete [ ] bat_ ; delete [ ] nametable_ [ 0 ] ; delete [ ] nametable_ [ 3 ] ; delete [ ] pattern_table_ ; for ( size_t i = 0 ; i < ( fixed_bank_ + 1U ) ; i ++ ) { delete [ ] cart_ [ i ] ; } return ; }
Deletes the calling StdBanked object.
Deletes the calling StdBanked object .
// Free the CPU memory arrays. // Free the VRAM data. // Frees each bank of CPU memory.