Hello, I'm curious how you install alternative cores?

Specifically I want to install the nestopia core for NES.