src/memory/memory.cc
/*
 * Stores the provided header and allocates the palette array.
 */
Stores the provided header and allocates the palette array.
Stores the provided header and allocates the palette array .
Memory::Memory(RomHeader *header, Config *config) {
  header_ = header;
  pixels_ = new PixelPalette();
  palette_ = new NesPalette(config->Get(kPaletteFileKey));
  return;
}
Memory :: Memory ( RomHeader * header , Config * config ) { header_ = header ; pixels_ = new PixelPalette ( ) ; palette_ = new NesPalette ( config -> Get ( kPaletteFileKey ) ) ; return ; }
Stores the provided header and allocates the palette array.
Stores the provided header and allocates the palette array .
// Load in the header and setup the palette data arrays. // Create a palette structure using the given configuration.