forked from libretro/RetroArch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Emscripten) Modularize the JavaScript and clean up the web build (li…
…bretro#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 <[email protected]>
- Loading branch information
1 parent
dbdf319
commit a7e90be
Showing
8 changed files
with
187 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// To work around a bug in emscripten's polyfills for setImmediate in strict mode | ||
var setImmediate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.