godot/platform/javascript
Pedro J. Estébanez 469fa47e06
Make all file access 64-bit (uint64_t)
This changes the types of a big number of variables.

General rules:
- Using `uint64_t` in general. We also considered `int64_t` but eventually
  settled on keeping it unsigned, which is also closer to what one would expect
  with `size_t`/`off_t`.
- We only keep `int64_t` for `seek_end` (takes a negative offset from the end)
  and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means
  we only need to guard against passing negative values in `core_bind.cpp`.
- Using `uint32_t` integers for concepts not needing such a huge range, like
  pages, blocks, etc.

In addition:
- Improve usage of integer types in some related places; namely, `DirAccess`,
  core binds.

Note:
- On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with
  version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for
  big files on 32-bit Windows builds made with that toolchain. We might add a
  workaround.

Fixes #44363.
Fixes godotengine/godot-proposals#400.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-17 15:06:19 +02:00
..
api Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
export Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
js [HTML5] Implement WebGL fallback. 2021-04-06 12:57:24 +02:00
.eslintrc.engine.js [HTML5] Document Engine and EngineConfig (jsdoc). 2021-02-26 11:33:59 +01:00
.eslintrc.js [HTML5] Enforce JavaScript style with eslint. 2020-11-23 12:15:18 +01:00
.eslintrc.libs.js Add support for WebXR 2021-01-04 17:02:37 -06:00
audio_driver_javascript.cpp Reorganize Project Settings 2021-02-18 11:23:34 -03:00
audio_driver_javascript.h Modernize Thread 2021-01-29 12:02:13 +01:00
detect.py [HTML5] Fix builds with recent emscripten versions 2021-04-30 08:01:26 +02:00
display_server_javascript.cpp OS: Remove native video API only implemented on iOS 2021-05-07 20:40:24 +02:00
display_server_javascript.h [HTML5] Opt-in virtual keyboard support. 2021-03-11 23:08:08 +01:00
dom_keys.inc Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
emscripten_helpers.py [HTML5] Export as Progressive Web App. 2021-04-27 14:44:31 +02:00
godot_audio.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
godot_js.h [HTML5] Implement WebGL fallback. 2021-04-06 12:57:24 +02:00
http_client_javascript.cpp Core: Drop custom copymem/zeromem defines 2021-04-27 16:26:27 +02:00
http_client.h.inc [HTML5] Use 64KiB chunk size in JS HTTPClient. 2021-05-06 14:00:52 +02:00
javascript_eval.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
javascript_main.cpp [HTML5] Fix target_fps when window loses focus. 2021-05-07 21:51:14 +02:00
javascript_runtime.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
logo.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2019-10-12 23:23:33 +02:00
os_javascript.cpp [HTML5] Implement get_processor_count. 2021-02-17 13:03:52 +01:00
os_javascript.h [HTML5] Implement get_processor_count. 2021-02-17 13:03:52 +01:00
package-lock.json CI: Update JavaScript linter deps with known security vulnerabilities 2021-05-12 10:32:38 +02:00
package.json CI: Update JavaScript linter deps with known security vulnerabilities 2021-05-12 10:32:38 +02:00
platform_config.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
run_icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
SCsub [HTML5] Add PWA support to the editor page. 2021-03-08 17:06:24 +01:00