aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgbc dev <gbc@localhost>2026-09-22 19:29:28 +0200
committergbc dev <gbc@localhost>2026-09-22 19:29:28 +0200
commit69ce132b9edb355ecf77199f4b2ee5b339c39a30 (patch)
treec18f82a6c5fe67a0529548db4ed0a0c62f20a36d /src
parentwasm: run the emulator in a browser (diff)
downloadsl0pboy-69ce132b9edb355ecf77199f4b2ee5b339c39a30.tar.gz
sl0pboy-69ce132b9edb355ecf77199f4b2ee5b339c39a30.tar.xz
sl0pboy-69ce132b9edb355ecf77199f4b2ee5b339c39a30.zip
web: boot a demo ROM on arrival, and a deploy script for gbc.sl0p.foo
The page fetched nothing on its own, so a visitor met an empty canvas and a file picker. It now loads roms/gbos.gb on arrival - gbos being a Unix-ish microkernel for the GBC, which shows off rather more of the emulator than a title screen - with a note pointing at SELECT for its on-screen keyboard and warning that its networking rides a link cable a browser tab doesn't have. Dropping your own ROM still replaces it (and hides the blurb). web/deploy.sh builds the wasm, stages index + wasm + the demo ROM, rsyncs to /opt/sl0p/gbc and curls the three URLs back. The ROM is a build artifact of ~/dev/gbos and deliberately not vendored here; if it's missing the page falls back to "drop in a ROM" on the 404, so the deploy still works. Also fixes a save-path bug that would have bitten the first 128KB cart: String.fromCharCode(...sram) throws RangeError on a spread that big, killing the autosave. Chunked, and the whole thing is wrapped for quota errors.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions