代码拉取完成,页面将自动刷新
RetroArch ported to WASM with emscripten!
Demo
This was initially part of gfiles, but I decided to split it off.
These 5 cores are included with the repository (ROMs NOT included):
The asset bundle will be fetched from GitHub using jsdelivr by default. You can change this option on line 10 of assets/base.js
(example alternate value: "./"
).
Query string options:
core
- specify the libretro core to use, i.e. genesis_plus_gx
, mgba
, mupen64plus_next
, nestopia
, snes9x
. autodetect
can also be used, which attempts to find the correct core for the ROM (slower to load because the core is loaded after the ROM) (if not specified, the user will be shown a list of the default cores).system
- same as above, but will attempt to detect the core based on the specified system, i.e. gba
, genesis
, nes
, nintendo 64
, snes
. If both core
and system
are specified, core
will override system
.rom
- will attempt to fetch a ROM from the ./roms/
directory on the server, or an absolute url (including protocol), e.g. mario3.nes
(if not specified, the user will be prompted to upload a ROM).nobundle
if this exists, the bundle fetch will be skipped.console
if this exists, the console window will open on load.Example OK query uris:
?core=snes9x&rom=dkc.smc&nobundle&console
?core=mgba&rom=https://example.com/marioadvance3.zip
?core=autodetect&rom=supermarioworld.sfc
?core=autodetect&nobundle
?core=genesis_plus_gx
?
You can easily embed webretro on your site by using the api provided in embed/embed.js
. You can see an example of it here.
How to use: webretroEmbed(domNodeToAppendTo, webretroPath, queries)
(returns the new iframe node that it creates)
domNodeToAppendTo
- the element that you want webretro to appear in.webretroPath
- the path to the index of the webretro instance.queries
- object containing the query string options shown above.assets/base.js
:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。