Skip to content

Request Parameters

Chris Smith edited this page May 10, 2020 · 12 revisions

JS7800 supports the following set of request parameters.

Request parameters can be added to the JS7800 URL to control various emulator options. For example, the cart request parameter can be used to force loading of a specific cartridge when JS7800 is initially displayed.

Parameter Name Description
cart The cart request parameter can be used to load a specific cartridge when the emulator page is initially loaded.

The following URL will cause the homebrew game, "bonQ", to load:

https://raz0red.github.io/js7800/?cart=http://raz0red.github.io/js7800/roms/bonq.a78
cartlist The cartlist request parameter can be used to load a cartridge list into the Cartridge Drop-Down Menu when JS7800 is initially loaded.

The following URL will cause a list of homebrew demos to be populated in the cartridge drop-down menu:

https://raz0red.github.io/js7800/?cartlist=http://raz0red.github.io/js7800/roms/romlist-homebrew-demos.json

Multiple request parameters can be combined to set more than one option when JS7800 is loaded. The following URL will load a specific game, "bonQ", and a cartridge list containing homebrew demos:

https://raz0red.github.io/js7800/?cart=http://raz0red.github.io/js7800/roms/bonq.a78&cartlist=http://raz0red.github.io/js7800/roms/romlist-homebrew-demos.json

Since adding request parameters will typically result in long URLs, the use of the GitHub URL shortening service, git.io, is recommended. The following URL is the shortened version of the example above, containing both cart and cartlist request parameters:

https://git.io/JfcmO

Clone this wiki locally