text: namespace Board {
  
  #include "sega.cpp"
  #include "codemasters.cpp"
  #include "korea.cpp"
  #include "msx.cpp"
  #include "janggun.cpp"
  
  auto Interface::load(Memory::Readable<n8>& memory, string name) -> bool {
    if(auto fp = pak->read(name)) {
      memory.allocate(fp->size());
      memory.load(fp);
      return true;
    }
    return false;
  }
  
  auto Interface::load(Memory::Writable<n8>& memory, string name) -> bool {
    if(auto fp = pak->read(name)) {
      memory.allocate(fp->size());
      memory.load(fp);
      return true;
    }
    return false;
  }
  
  auto Interface::save(Memory::Writable<n8>& memory, string name) -> bool {
    if(auto fp = pak->write(name)) {
      memory.save(fp);
      return true;
    }
    return false;
  }
  
  }
  