Commit Graph

3471 Commits

Author SHA1 Message Date
PrecisionRender 237a31e1f2
Fix Xbox Series controller duplicate input
(cherry picked from commit e9400867b3)
2023-03-06 13:02:54 +01:00
Juan Linietsky 3d9bcd7d27
Fix AltGR getting stuck on Windows right alt-tab
Fixes #28511.

(cherry picked from commit e01452adb0)
2023-03-06 13:02:03 +01:00
Jordan Schidlowsky dc0f7255f1
Windows: Fix heap overflow setting native icon
Fixes #71697.

(cherry picked from commit 86945ffc78)
2023-03-06 13:00:20 +01:00
Tom Beckmann 3ef78da85a
Fix writing value for hand-tracking V2.0 to AndroidManifest.xml
(cherry picked from commit 0116d50fdd)
2023-01-20 12:16:35 +01:00
Rémi Verschelde f78b44c1fa
macOS: Fix sprintf deprecation warning
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
(cherry picked from commit a297a69ac8)
2023-01-20 12:14:21 +01:00
dependabot[bot] 6cfbe8d442
Bump json5 from 1.0.1 to 1.0.2 in /platform/web
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit a20c8443af)
2023-01-11 16:03:02 +01:00
Marius Seufzer 7a4175504b
iOS: Add new model identifiers for DPI metrics
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
(cherry picked from commit ee5057a42e)
2023-01-11 16:03:02 +01:00
bruvzg 0c0c009f8d
[macOS] Fix stylus tilt Y direction.
(cherry picked from commit 5478f9b842)
2023-01-11 16:03:02 +01:00
Rémi Verschelde 16f6a5b139
One Copyright Update to rule them all
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.

It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).

We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).

Also fixed "cf." Frenchism - it's meant as "refer to / see".

Backported from #70885.
2023-01-10 15:32:59 +01:00
Jason Knight 602ef82e89
Change auto to default in cursor css settings.
(cherry picked from commit 6812e66f33)
2022-12-12 14:59:52 +01:00
Fredia Huya-Kouadio faaec47d54
Upgrade Android gradle plugin to version 7.2.1
(cherry picked from commit 151233b702)
2022-12-12 14:45:38 +01:00
Hugo Locurcio eb100cbddb
Only support XDG directory path configuration on Linux
This also harmonizes the server code to be consistent with Linux desktop
(with warnings printed for relative XDG paths).

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit 06c266f231)
2022-12-12 14:43:22 +01:00
nyanpasu64 62be3b3a9b Fix burning CPU with udev disabled on Flatpak
Fixes #67355.

(cherry picked from commit 0cbd1c85a9)
2022-12-12 14:42:47 +08:00
Pedro J. Estébanez 0e0550a83a Fix newlines not honored in Windows console
This is relevant when building with `windows_subsystem=console`.

(cherry picked from commit e14c5186e2)
2022-12-12 14:40:39 +08:00
bruvzg d3d72268cd [MSVC] Use symbols from .pdb only, to avoid incorrect names in the backtrace when symbols are missing.
(cherry picked from commit d99c32668a)
2022-12-12 14:13:16 +08:00
bruvzg 014525904a [macOS] Update activation hack to work on Ventura.
(cherry picked from commit 153d06d79b)
2022-12-05 10:09:54 +08:00
Abdulrahman Al Zeidi 8f01733d52 Fix static object destructors being called on gpu selection with X11
(cherry picked from commit 5860f81c18)
2022-12-05 10:09:43 +08:00
Dan d4f402b728 fix exporting Android APPLICATION_ATTRIBS (3.X)
(cherry picked from commit d789ad4b20)
2022-12-05 09:44:00 +08:00
Fredia Huya-Kouadio 05cb89855e Update the `clean` task configuration
Running `gradlew clean` will now properly delete the generated build artifacts

(cherry picked from commit 71c76a4ff2)
2022-12-05 09:28:00 +08:00
Jason Knight f5b2f77111 Fix null in android keyboard handling.
(cherry picked from commit 31fe6848e8)
2022-12-05 09:22:16 +08:00
Rémi Verschelde 560c77b1a1 HTML5: Add missing `OS::get_cursor_shape()` implementation
Fixes #66835.

(cherry picked from commit 6f6c8b114b)
2022-12-05 09:21:28 +08:00
bruvzg a0f1eac3e9 [Windows, 3.x] Fix WM_CHAR processing code using Unicode char instead of Virtual key.
(cherry picked from commit 77fc88e9a6)
2022-12-05 09:17:08 +08:00
Ted Spikes 6025d4ae2e Check for ios_simulator when building for x86_64
(cherry picked from commit 21f7bd0723)
2022-09-20 10:28:01 +02:00
Rémi Verschelde 2bb8183011 HTML5: Fix warning with Emscripten 3.1.20
Use version 3.1.14 for CI like for official builds.

(cherry picked from commit 5271d69909)
2022-09-09 14:30:52 +02:00
Rémi Verschelde a027a2efaa Mono: Show custom error explaining that UWP is not supported
Fixes #64490.

(cherry picked from commit ceef056146)
2022-09-01 11:08:18 +02:00
Fredia Huya-Kouadio e1e03297f1 Additional fixes to the Android `get_current_dir()` implementation.
(cherry picked from commit 9910d4681d)
2022-09-01 11:05:27 +02:00
Nathan Franke ab5f3fcbe0 3.x: ios: force app store icon to be opaque, use proper errors, fix memory leak
(cherry picked from commit da3aecff01)
2022-08-30 11:19:20 +02:00
bruvzg 9dcbf8a8a5 [3.x, macOS / iOS Export] Fix generation of duplicate locale property list files.
(cherry picked from commit 3a24839cb2)
2022-08-30 11:14:05 +02:00
Rémi Verschelde b5e368c92b Linux: Fix GNU ld detection for pck_embed linker script
(cherry picked from commit fce3602a1e)
2022-08-30 11:07:51 +02:00
Pedro J. Estébanez fc01ed9dbb Clean iOS platform config of long gone macro
(cherry picked from commit 8c2a577350)
2022-08-29 17:13:45 +02:00
Fredia Huya-Kouadio f96f8ddfc7 Fix issue with `get_current_dir()` returning the wrong path on Android
(cherry picked from commit b5e1096c61)
2022-08-29 17:11:32 +02:00
Fredia Huya-Kouadio ea8fa93809 Disable threads used to check on plugins to load
The functionality is unavailable on Android (requires export capability) and unnecessarily consumes resources

(cherry picked from commit 3ac6b6a596)
2022-08-29 17:07:48 +02:00
Fredia Huya-Kouadio a7a8f9c85d Fix issue preventing the Android Editor from displaying the project content
The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached.
This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.

(cherry picked from commit 30479543b0)
2022-08-29 17:07:44 +02:00
Rémi Verschelde 7fe3a0694b CI: Sync configuration with master branch
Updates various actions to latest versions:

actions/cache@v3
actions/checkout@v3
actions/upload-artifact@v3
actions/setup-dotnet@v2
actions/setup-java@v3
actions/setup-python@v4
mymindstorm/setup-emsdk@v11

(cherry picked from commit abaa76fcf9)
2022-08-25 14:14:13 +02:00
Haoyu Qiu 1ea8b9d2b7 Fix Time.get_unix_time_from_system() not including msecs
(cherry picked from commit 1be078ebcb)
2022-08-08 16:32:16 +02:00
bruvzg e0101e511c Improve some export error messages.
(cherry picked from commit ea00cf7270)
2022-08-01 10:37:04 +02:00
Rémi Verschelde 751b16a285 File: Re-add support to skip CR (`\r`) in `File::get_as_text`
This was removed in #63481, and we confirmed that it's better like this,
but we add back the possibility to strip CR as an option, to optionally
restore the previous behavior.

For performance this is done directly in `String::parse_utf8`.

Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR.

Supersedes #63717.

(cherry picked from commit 1418f97c70)
2022-08-01 00:40:55 +02:00
Rémi Verschelde 10e8a25ce7 SCons: Fix X11 `use_lld` fallback not being applied 2022-07-31 13:49:12 +02:00
pattlebass fb7ecc748f [3.x] HTML5: Add support for `Input.vibrate_handheld()` 2022-07-28 13:20:05 +03:00
Rémi Verschelde 6c8d9b8401
Merge pull request #63480 from m4gr3d/fix_remaining_scoped_storage_regressions_3x
[3.x] Address remaining scoped storage regressions
2022-07-26 18:15:14 +02:00
Fredia Huya-Kouadio fc2c202312 Address remaining scoped storage regressions
- Accelerate common path used to check the storage scope for a given path
- Update the logic for the `get_as_text()` method - previous logic loads the content of a text file one byte at a time
2022-07-26 07:42:49 -07:00
Kevin Smith 01cfcab5c6 Use bigobj for release MSVC builds
Previously it was used only on debug builds, but recent
additions to variant_call.cpp have made that unit too
large even in release_debug.

It was originally set to debug only because using it
breaks mingw, so this only reinstates it for MSVC where
it shouldn't have any drawbacks (famous last words).

Test-Information:
Builds for me with
scons -j 40 platform=windows target=release_debug
and my game then runs from it.

(cherry picked from commit d8900e0020)
2022-07-26 11:01:55 +02:00
Rémi Verschelde 818f1eed31 Code quality: Fix header guards consistency
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 14:53:37 +02:00
Pedro J. Estébanez a0448f1d5e Flush buffered input events on UWP
(cherry picked from commit b53d032fb8)
2022-07-25 11:44:36 +02:00
Rémi Verschelde 364071c2c4
Merge pull request #63283 from akien-mga/3.x-scons-linux-refactor-linker 2022-07-22 11:40:29 +02:00
Hansem Ro a36902f2c1 [3.x, X11] Do case-insensitive search for pen inversion detection 2022-07-21 19:25:39 -07:00
Rémi Verschelde 5bb3063eec SCons: Refactor Linux linker options with `linker=<bfd|gold|lld|mold>`
The new option is `linker` and lets the user specify the argument to
the`-fuse_ld=` linker flag directly. The supported options are:

- `default`: No change, typically uses GNU ld (bfd) unless the user or
  distro picked a different default `/usr/bin/ld`.
- `bfd`: GNU ld from binutils
- `gold`: GNU gold from binutils
- `lld`: lld from LLVM
- `mold`: mold, an extremely fast modern linker, not (yet) intended for
  use in production but great for development speed. Provided by distro
  `mold` package or needs to be compiled from source and installed to
  `/usr` otherwise.

Deprecates the `use_lld=yes` option, and make lld actually usable with
GCC too.

Not all the above are compatible or recommend for LTO, we recommend
using GNU ld with GCC LTO, or lld with LLVM ThinLTO.

(cherry picked from commit 534f85add1daec0669a1f18edd2cc456f9a296ef)
2022-07-22 01:03:31 +02:00
bruvzg 108dcf3bf0
Improve OS.set_current_screen
Fix moving fullscreen windows on macOS and Windows
Fix window position on Linux/X11
2022-07-19 12:23:52 +03:00
pattlebass 82c3e6229b HTML5: Make `OS.get_locale()` match other platforms
Fixes #63029.

(cherry picked from commit d57a76c809)
2022-07-15 23:25:01 +02:00
Rémi Verschelde 101cbe5d5b
Merge pull request #62723 from hansemro/eraser-detect-3.x 2022-07-15 00:13:15 +02:00