25 Commits

Author SHA1 Message Date
Joe Osborn
0f4166a59f
Use ZipFS for web player asset bundle (#15924)
* wip

* fix mount path

* Fix path for zip bundle

* fix case where idbfs sets up correctly and filesystem initializes too early

* Use partfiles to keep each zip small

* use bufferview slices instead of resize to support firefox
2023-11-17 11:25:45 -08:00
Joe Osborn
862bebf687
(Emscripten) Modularize the JavaScript and clean up the web build (#15688)
* Increase emscripten stack size and decrease path size to fix emscripten builds broken since de45fc2

* use modularize flags for better-behaved javascript output

* makefile and loader changes

* use specialHTMLTargets to support modular access to canvas

* bind key events to canvas, not document

This way focus means focus and we can have multiple RA instances in
one page.

* Work around an emscripten bug in strict mode

* (Emscripten) Use console.error() for error messages

* increase asyncify stack size

* Fix `-lm` flag-related compile warnings in emscripten

---------

Co-authored-by: Rob Loach <robloach@gmail.com>
2023-11-02 13:25:50 -07:00
Joe Osborn
e1afca5392
add command and stdin_cmd features to emscripten RA. update libretro.js to show how commands could be sent over emscripten stdin. (#15017)
Co-authored-by: Joseph C. Osborn <jcoa2018@pomona.edu>
2023-02-24 22:06:04 +01:00
Ryan Kuba
1fc6f759c5
tweak to ensure that current versions of emsdk do not break the web player (#13310) 2021-12-03 16:20:12 +01:00
Neil Barkhina
8590e0e3fe
Fixed web player bug with filesystem and runtime 2021-08-22 20:08:05 -04:00
Brad
54a166a360
Allows hosting in a subfolder instead of only root
Paths starting with slashes look in the root of a site, and these asset folders should generally be beside this .js + index.html...
This simple change was all that was needed to allow hosting in a subfolder of a site, and is not a breaking change unless someone has the asset folders elsewhere, which would be a breaking change on their part anyway.
2021-02-14 19:47:01 -06:00
Stevoisiak
f4f339c4d5
Remove unnecessary escape character
http://eslint.org/docs/rules/no-useless-escape
2019-12-31 12:13:40 -05:00
twinaphex
3619fae2d9 (LGTM) Silence some warnings 2019-04-13 02:15:26 +02:00
Toad King
78a3d0f828 Merge branch 'master' into more-emscripten-fixes 2018-01-15 04:09:26 -06:00
Rob Loach
443262a9cd
emscripten: Allow hiding the top menu 2018-01-14 23:57:53 -05:00
radius
d7168584a2 cut down duplication 2018-01-14 22:43:49 -05:00
radius
346d9480f7 remove dropbox 2018-01-14 22:31:30 -05:00
Toad King
2df70cce17 make retroarch logs log to web console instead of textbox 2018-01-14 21:18:30 -06:00
Toad King
a682ccd8e8 fix menu button 2018-01-14 21:02:59 -06:00
Brad Parker
8f7810d921 emscripten: only fire keyup once, and don't wait so long to do so (libretro.js) 2017-12-08 18:15:22 -05:00
Rob Loach
d386f63525
[Emscripten] Add Tooltips to the buttons 2016-12-03 11:44:26 -05:00
radius
50539d58df allow cleaning up idbfs 2016-11-21 20:58:45 -05:00
radius
4e33f25328 (ems) useless CDN is useless 2016-09-29 08:49:31 -05:00
radius
c790f452e7 (ems) update template, don't enable run button till idbfs is synced 2016-09-24 22:32:47 -05:00
radius
e48cd885f9 (ems) update webplayer template too 2016-09-24 17:30:03 -05:00
radius
29e354a3c6 (ems) template cleanups 2016-09-17 15:13:47 -05:00
radius
356c17678e (ems) add button to clean local storage 2016-09-17 12:37:42 -05:00
radius
6f195ddc6d (ems) template cleanup 2016-09-17 02:05:49 -05:00
radius
0515e9f753 (ems) remove some unused code 2016-09-17 02:01:13 -05:00
fr500
f4e35e3cdf (ems) reorganize templates 2016-09-15 18:18:26 -05:00