summaryrefslogtreecommitdiffstats
path: root/platform/javascript
Commit message (Collapse)AuthorAgeFilesLines
* HTML5: Run `npm audit fix`Rémi Verschelde2022-05-252-90/+151
| | | | | And re-add `node_modules` to `.gitignore` which I mistakenly removed with an earlier cleanup.
* HTML5: Enable mbedTLS module for Crypto objectRémi Verschelde2022-05-251-5/+0
| | | | | | | | | | Increases the size of the wasm by around 3% (~300-350 KiB). This enables using the Crypto object for hashing, signing and encryption, and therefore reduces the gap between the features of the HTML5 platform and other platforms. Closes https://github.com/godotengine/godot-proposals/issues/3574.
* Add a new HashSet templatereduz2022-05-201-1/+1
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Merge pull request #61020 from timothyqiu/wait-busyRémi Verschelde2022-05-191-2/+2
|\
| * Swap the meaning of CURSOR_WAIT and CURSOR_BUSYHaoyu Qiu2022-05-141-2/+2
| |
* | Replace most uses of Map by HashMapreduz2022-05-165-9/+9
|/ | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Fix ZipIO crash when reused (and possible leaks).bruvzg2022-05-112-2/+4
|
* [HTML5] Limit the returned OS cpu count to 2.Fabio Alessandrelli2022-05-111-1/+3
| | | | Temporarily workaround issues due to godot spawning too many threads.
* [HTML5] Fix JS "tools" editor plugin.Fabio Alessandrelli2022-05-101-1/+1
| | | | Needed update after file/dir access refactoring.
* [HTML5] Add "webgl/webgl2.h" as OpenGL include.Fabio Alessandrelli2022-05-102-0/+39
| | | | Requires emscripten versions > 2.0.17 .
* Merge pull request #51682 from mdavisprog/os-is-process-runningRémi Verschelde2022-05-042-0/+5
|\ | | | | OS::is_process_running function.
| * Add OS::is_process_running function.mdavisprog2022-05-032-0/+5
| | | | | | | | | | | | | | | | Adds the is_process_running function to the native OS class and exposes it to script. This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function. Documentation is updated to reflect new API function.
* | [JS] Add flag to disable weak symbols in ZSTD.Fabio Alessandrelli2022-05-031-0/+2
| | | | | | | | Weak symbols are currently broken in upstream emscripten.
* | Added missing signature.Fabio Alessandrelli2022-05-031-0/+1
|/
* Merge pull request #60714 from Calinou/typedef-remove-refRémi Verschelde2022-05-033-3/+3
|\ | | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
| * Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-033-3/+3
| | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* | Add GDNativeInterface::get_library_path to GDExtensionEmmanuel Leblond2022-04-292-2/+7
|/
* Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg2022-04-284-0/+202
| | | | | | Windows. Implement TextServer word break method.
* Fix more issues found by cppcheck.bruvzg2022-04-201-1/+1
|
* Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-6/+8
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-113-42/+22
|
* Fix some issues found by cppcheck.bruvzg2022-04-061-1/+1
|
* HTML5: Explain why export templates are missingRémi Verschelde2022-03-261-0/+9
| | | | | | | Same for UWP. This is skipped in DEV_ENABLED builds so contributors can still test the export pipeline (and CI still compiles it on debug builds).
* Bump minimist from 1.2.5 to 1.2.6 in /platform/javascriptdependabot[bot]2022-03-231-6/+6
| | | | | | | | | | | | | Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #59062 from BastiaanOlij/storagerd_textureRémi Verschelde2022-03-171-1/+1
|\
| * Split dummy renderer classes into separate filesBastiaan Olij2022-03-161-1/+1
| | | | | | | | Split canvas_texture_storage and texture_storage from render_storage class
* | Implement GDExtension export plugin.bruvzg2022-03-161-1/+1
|/
* Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde2022-03-112-12/+12
| | | | | | | | `DirAccess *` needs to be deleted manually, and this is often forgotten especially when doing early returns with `ERR_FAIL_COND`. `DirAccessRef` is deleted automatically when it goes out of scope. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* Discern between virtual and abstract class bindingsreduz2022-03-101-2/+2
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Remove VARIANT_ARG* macrosreduz2022-03-091-2/+2
| | | | | | | | * Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
* Revert "[HTML5] Fetch API now passes credentials."Rémi Verschelde2022-03-071-1/+0
|
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-163-5/+9
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* HTML5: Fix build after #52742Rémi Verschelde2022-02-161-1/+2
| | | | Fixes #58172.
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-153-4/+2
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Merge pull request #58081 from tavurth/bugfix/high-macos-cpu-usageRémi Verschelde2022-02-151-1/+1
|\
| * Fix new performance regressions (short delay_usec)Will Whitty2022-02-151-1/+1
| | | | | | | | | | | | | | | | My Mac was using 20% cpu again, which was related to the Javascript Export plugin. I had however no export templates setup in the project so this is more of a stopgap fix.
* | Remove most EditorNode constructor parameters and fieldstrollodel2022-02-142-3/+3
|/
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-122-1/+6
|
* [HTML5] Fetch API now passes credentials.Fabio Alessandrelli2022-02-101-0/+1
| | | | | Used default value before, i.e. "same-origin", now uses "include" (i.e. include for cross-origin if cross-origin is allowed).
* [HTML5] Implement JavaScript PWA update callbacks.Fabio Alessandrelli2022-02-067-0/+97
| | | | | | Allows detecting when a new version of the progressive web app service worker is waiting (i.e. an update is pending), along a function to force the update and reload all clients.
* [HTML5] PWA service worker prefers cached version.Fabio Alessandrelli2022-02-063-23/+40
| | | | | | | | Use an offline first approach, where we prefer the cached version over the network one. This forces games using PWA to always re-export the project and not just the PCK, so that the service worker version gets updated correctly, and the end-user cache is correctly cleared on update.
* Add missing SNAME macro optimization in some function callsjmb4622022-02-062-2/+2
|
* Merge pull request #57341 from bruvzg/win_multiwin_fsRémi Verschelde2022-02-041-1/+2
|\
| * [Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to ↵bruvzg2022-02-041-1/+2
| | | | | | | | | | | | allow multi-window interface in full-screen. [Windows] Add WINDOW_MODE_EXCLUSIVE_FULLSCREEN without WS_BORDER flag enabled (no multi-window support).
* | Merge pull request #57335 from jordigcs/display-refresh-rateRémi Verschelde2022-02-042-0/+5
|\ \ | |/ |/|
| * Add screen_get_refresh_rate to DisplayServerjordi2022-02-032-0/+5
| |
* | Revert "[HTML5] Better engine config parsing."Fabio Alessandrelli2022-02-031-21/+22
| | | | | | | | | | | | | | This reverts commit 2f509f1b12c33234a0d8f0e254c727fd92e57720. Breaks closure compiler builds. And adds a warning for future readers.
* | Merge pull request #56771 from mhilbrunner/unacceptableFabio Alessandrelli2022-02-021-0/+5
|\ \ | | | | | | Verify custom HTTP headers, fix off by one error
| * | Verify custom HTTP headers, fix off by one errorMax Hilbrunner2022-01-271-0/+5
| |/
* | [HTML5] Fix gamepad samples not being properly reset.Fabio Alessandrelli2022-01-311-1/+1
| |