gb
A shortcut method for Nostalgist.launch method, with some additional default options for GB emulation.
It will use mgba as the default core for emulation.
Basic usage:
await Nostalgist.gb('blastah.gb')
// is equal toawait Nostalgist.launch({ core: 'mgba', rom: 'blastah.gb' })Arguments
Section titled “Arguments”-
Section titled “options”optionstype:
string | ObjectIf the
optionsis astring | File | { fileName: string; fileContent: Blob }, it will be treated as{ rom: options }in fact.If the
optionsis anObject, then it is the same as theoptionsargument forNostalgist.launch.Please refer to launch#options.