nes
A shortcut method for Nostalgist.launch
method, with some additional default options for NES emulation.
It will use fceumm
as the default core for emulation.
Usage
Basic usage:
await Nostalgist.nes('flappybird.nes')
// is equal toawait Nostalgist.launch({ core: 'fceumm', rom: 'flappybird.nes' })
Arguments
-
options
If the
options
is astring | File | { fileName: string; fileContent: Blob }
, it will be treated as{ rom: options }
in fact.If the
options
is anObject
, then it is the same as theoptions
argument forNostalgist.launch
.Please refer to launch#options.