summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
Commit message (Collapse)AuthorAgeFilesLines
* [Editor] LinuxBSD export reports Linux as OS name.Fabio Alessandrelli2022-05-241-1/+1
| | | | | | | | | This is in line with what's reported by the `OS` class on GNU/Linux, and is required by the extension exporter to identify the correct library. For BSD, we should either finish splitting the platform (into platform/bsd) or register a separate exporter with OS name BSD and proper templates detection.
* Add a new HashSet templatereduz2022-05-202-2/+2
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-164-25/+25
| | | | | | | | | | | | * 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!
* Basic 3D renderingclayjohn2022-05-121-2/+2
|
* Crash handler: Use `print_error` to include backtrace in logsRémi Verschelde2022-05-051-10/+12
|
* Read and store joypad events in a separate thread on x11 platformMarcel Admiraal2022-05-052-173/+204
|
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-032-2/+2
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-023-50/+20
| | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* [Linux] Disable speech-dispatcher, pulse audio and udev wrapper builds, when ↵bruvzg2022-04-281-0/+3
| | | | library is not found.
* Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg2022-04-288-0/+1629
| | | | | | Windows. Implement TextServer word break method.
* Merge pull request #56093 from bruvzg/pck_section_loadRémi Verschelde2022-04-272-0/+87
|\ | | | | Improve embedded PCK loading and exporting.
| * Improve embedded PCK loading and exporting.bruvzg2022-04-202-0/+87
| | | | | | | | | | | | | | | | | | | | Windows export process: Limit size of executable with embedded PCK to 4 GB. Use "rcedit" before embedding PCK. Capture and process "rcedit" errors. Windows, Linux: Add support for PCK loading from executable "pck" section.
* | Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde2022-04-271-6/+5
|\ \
| * | Fix more issues found by cppcheck.bruvzg2022-04-201-6/+5
| |/
* | Merge pull request #60523 from akien-mga/linux-pkgconfig-nixosRémi Verschelde2022-04-271-4/+6
|\ \
| * | Linux: Use pkg-config for alsa, libudev and GL tooRémi Verschelde2022-04-261-4/+6
| |/ | | | | | | | | | | | | | | | | | | It's not needed on most distros as those are found in standard lib and include paths, but on NixOS they're all in non-standard prefixes, so we need to rely on information provided by pkg-config. Fixes #59913. Co-authored-by: David Lewis <davidalewis00@gmail.com>
* | Merge pull request #58272 from bruvzg/x11_backup_screen_infoRémi Verschelde2022-04-271-6/+19
|\ \ | |/ |/|
| * [Linux/X11] Fallback to the X server root window to get screen rects, if ↵bruvzg2022-02-181-6/+19
| | | | | | | | Xinerama is not available.
* | Fix sub-menu keyboard navigation.bruvzg2022-04-131-1/+1
| |
* | Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-3/+5
| |
* | Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-112-18/+12
| |
* | Fix some issues found by cppcheck.bruvzg2022-04-063-9/+8
| |
* | Merge pull request #59908 from bruvzg/fix_popup_close_raceRémi Verschelde2022-04-061-10/+23
|\ \ | | | | | | Fix a possible race condition on popup close, that might cause multiple deletions of the same list item.
| * | Fix a possible race condition on popup close, that might cause multiple ↵bruvzg2022-04-051-10/+23
| | | | | | | | | | | | deletions of the same list item.
* | | CI: Update black formatter and apply changesRémi Verschelde2022-04-051-1/+1
|/ /
* | Zero initialize all pointer class and struct membersRémi Verschelde2022-04-043-6/+6
| | | | | | | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* | Add CI build with clang sanitizers, increase stack size to 30 MB for builds ↵bruvzg2022-04-012-0/+11
| | | | | | | | with sanitizers.
* | Fix X11 is_window_maximizedConteZero2022-03-311-2/+9
| |
* | Rename warp mouse functions to warp_mouseMarkus Sauermann2022-03-272-4/+4
| |
* | Generate export template file names instead of having a fixed setAaron Franke2022-03-223-4/+5
| |
* | Change extension for Linux 32-bit x86 exports to x86_32Aaron Franke2022-03-211-1/+1
| |
* | Move extension logic to EditorExportPlatformLinuxBSDAaron Franke2022-03-212-0/+24
| |
* | Move fixup_embedded_pck to EditorExportPlatform classesAaron Franke2022-03-203-108/+106
| |
* | [Export] Add "export console script" option for Linux, macOS, and Windows ↵bruvzg2022-03-143-5/+123
| | | | | | | | exports.
* | Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde2022-03-111-2/+1
| | | | | | | | | | | | | | | | `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>
* | Merge pull request #58335 from maiself/fix-directory-delete-linuxRémi Verschelde2022-03-101-19/+20
|\ \
| * | Fix deleting of directories on LinuxMai Lavelle2022-02-201-19/+20
| |/ | | | | | | | | Trailing slash of directories was mishandled, and incorrect derived paths were formed. Stripping the slash fixes this.
* | Remove unused Bullet module and thirdparty codeRémi Verschelde2022-03-091-21/+0
| | | | | | | | | | | | | | It has been disabled in `master` since one year (#45852) and our plan is for Bullet, and possibly other thirdparty physics engines, to be implemented via GDExtension so that they can be selected by the users who need them.
* | Add missing header for headless buildsMmAaXx5002022-03-091-0/+1
| |
* | [X11] Do not try to focus unmapped window.bruvzg2022-03-081-2/+6
| |
* | Fix X11 memory leak after drag & drop file into the editorHaoyu Qiu2022-03-041-12/+19
| |
* | Improve popup window handling.bruvzg2022-02-252-25/+178
|/ | | | Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-164-5/+6
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* Add an `OS.get_processor_name()` methodHugo Locurcio2022-02-152-0/+15
| | | | | | | | This method can be used to get the CPU model name. It can be used in conjunction with `RenderingServer.get_video_adapter_name()` and `RenderingServer.get_video_adapter_vendor()` for annotating benchmarks and automatic graphics quality configuration.
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-2/+0
|
* Fix typos with codespellRémi Verschelde2022-02-101-4/+4
| | | | | | | Using codespell 2.2-dev from current git. Added `misc/scripts/codespell.sh` to make it easier to run it once in a while and update the skip and ignore lists.
* Core: Move generated `VERSION_HASH` to a `.cpp` fileRémi Verschelde2022-02-091-4/+3
| | | | | This lets us have its definition in `core/version.h` and avoid rebuilding a handful of files every time the commit hash changes.
* Merge pull request #57612 from maiself/improve-gamepad-detectionRémi Verschelde2022-02-081-2/+3
|\
| * Improve detection of gamepads on LinuxMai Lavelle2022-02-031-2/+3
| | | | | | | | Some devices (Nintendo Switch Right Joy-Con) report only a right stick.
* | [X11] Fix decoration reset when returning from fullscreen mode.bruvzg2022-02-081-1/+1
| |