summaryrefslogtreecommitdiffstats
path: root/core/core_bind.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #69698 from Daylily-Zeleen/daylily-zeleen/show_in_explorerRémi Verschelde2023-04-251-0/+10
|\ | | | | | | Implement and expose OS::shell_show_in_file_manager()
| * Implement and expose OS::shell_show_in_file_manager()Daylily-Zeleen2023-04-251-0/+10
| |
* | [OS] Implement and expose to scripting APIs `get_memory_info` method instead ↵bruvzg2023-04-241-0/+5
|/ | | | of old `get_free_static_memory`.
* Add Engine::unregister_script_language and make ↵Emmanuel Leblond2023-02-101-2/+7
| | | | Engine::register_script_language returns a Error
* GDScript: Fix issues with typed arraysDmitrii Maganov2023-01-311-7/+7
|
* Booleanize various sync primitives' wait & locking methodsPedro J. Estébanez2023-01-271-3/+3
|
* OS: Add `unset_environment`, better validate inputRémi Verschelde2023-01-161-3/+8
| | | | | | | | | Instead of returning an undocumented boolean error code, we do the validation checks that should ensure a successful result. Based on: - https://linux.die.net/man/3/setenv - https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setenvironmentvariable
* Merge pull request #70714 from Calinou/doc-os-stdinRémi Verschelde2023-01-121-3/+3
|\ | | | | Improve documentation for `OS.read_string_from_stdin()`
| * Improve documentation for `OS.read_string_from_stdin()`Hugo Locurcio2023-01-111-3/+3
| | | | | | | | | | | | This makes it clearer that calls to this method are blocking. The unused method parameter was also removed.
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* | Remove duplicate Month and Weekday enumsAaron Franke2022-12-261-21/+0
|/ | | | Well, they were duplicately-exposed, but triplicately-defined.
* Use system fonts as fallback and improve system font handling.bruvzg2022-12-041-3/+8
| | | | | | | Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
* Merge pull request #65836 from Calinou/add-max-physics-steps-per-frame-settingRémi Verschelde2022-11-151-0/+11
|\ | | | | | | Implement adjusting the maximum number of physics steps per rendered frame
| * Implement adjusting the maximum number of physics steps per rendered frameHugo Locurcio2022-10-091-0/+11
| | | | | | | | | | | | | | | | | | When using high physics FPS (which is a requirement to minimize input lag and improve precision in simulation racing games), a higher value prevents the game from slowing down at low rendering FPS. This can be done via an Engine property for run-time changes, or a project setting for initial changes.
* | Merge pull request #67244 from RandomShaper/split_render_further_2Rémi Verschelde2022-10-111-2/+2
|\ \ | | | | | | Polish rendering driver refactor further (take 2)
| * | Polish rendering driver refactor further (take 2)Pedro J. Estébanez2022-10-111-2/+2
| |/
* | Merge pull request #66102 from MJacred/feature/getvideoadapterdriverinfoRémi Verschelde2022-10-111-0/+6
|\ \ | |/ |/| | | Fetch video adapter driver name and version from OS
| * Fetch video adapter driver name and version from OS on Linux/*BSD and WindowsMJacred2022-10-111-0/+6
| |
* | Rename `Engine.target_fps` and associated project setting to `max_fps`Hugo Locurcio2022-10-031-7/+7
| | | | | | | | | | | | | | | | | | This makes the setting easier to find, as research has found there are numerous use cases to limiting FPS. This also improves documentation related to the Engine property and project setting. The project setting also works in projects exported in release mode, so its location in the `debug/` section was misleading.
* | Merge pull request #66803 from akien-mga/core-remove-NO_THREADSRémi Verschelde2022-10-031-6/+0
|\ \ | | | | | | | | | Remove `NO_THREADS` fallback code, Godot 4 requires thread support
| * | Remove NO_THREADS fallback code, Godot 4 requires thread supportRémi Verschelde2022-10-031-6/+0
| | | | | | | | | | | | | | | This also removes `OS::can_use_threads` from the public API since it's always true.
* | | Merge pull request #65751 from Faless/os/4.x_expose_read_from_stdinRémi Verschelde2022-10-031-0/+5
|\ \ \ | |/ / |/| |
| * | [OS] Expose get_stdin_string to Scripting.Fabio Alessandrelli2022-09-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Exposed as read_string_from_stdin so it's clear it's not retrieving a property. The method is kept with the block parameter, but a note is added to the docs specifying that is not implemented on any platform (should we just remove it?).
* | | Add method bind for `Geometry2D.decompose_polygon_in_convex`Mansur Isaev2022-09-211-0/+12
| | |
* | | Merge pull request #65271 from KoBeWi/FirAccess🌲Rémi Verschelde2022-09-191-630/+0
|\ \ \ | | | | | | | | | | | | Replace File/Directory with FileAccess/DirAccess
| * | | Replace File/Directory with FileAccess/DirAccesskobewi2022-09-191-630/+0
| | |/ | |/|
* / | Use `Vector2i` when returning atlas size in `Geometry2D::make_atlas`Marc Gilleron2022-09-191-2/+1
|/ /
* / Add get_distribution_name() and get_version() to OSMJacred2022-09-161-0/+10
|/ | | | | | supports: LinuxBSD, Windows, macOS, iOS, Android, UWP Co-authored-by: bruvzg
* Drop obsolete resource usage debug methods from OS classRémi Verschelde2022-08-291-115/+0
| | | | | | | | | | | These methods exist since the dawn of (open source) Godot and have hardly been updated over time, so they barely work and I'm fairly sure nobody is using them. (See #46505 for details.) While some of the functionality they aimed to provide might be useful for optimization work and introspection, this should likely be redesigned from scratch with a cleaner and more modern interface (e.g. exposed via the Performance singleton, or ResourceLoader, and a better API overall).
* Merge pull request #58530 from Calinou/os-remove-dump-memory-to-fileRémi Verschelde2022-08-251-5/+0
|\ | | | | Remove unimplemented `OS.dump_memory_to_file()` method
| * Remove unimplemented `OS.dump_memory_to_file()` methodHugo Locurcio2022-08-181-5/+0
| | | | | | | | | | | | This method never did anything in Godot since 3.0, since its code was commented out. The last time the method had an implementation was in Godot 2.1.x.
* | Replace Array return types with TypedArray 2kobewi2022-08-231-15/+18
| |
* | Replace Array return types with TypedArraykobewi2022-08-221-7/+8
|/
* Print expected `os.arch` tuple for current platform in GDExtension errorHugo Locurcio2022-08-081-0/+6
| | | | | This also adds `Engine.get_architecture_name()` to get the name of the CPU architecture the Godot binary was built for.
* Bring back Geometry2D.segment_intersects_circleHakim2022-08-031-0/+1
|
* Expose the "restart on exit" OS functionalityHugo Locurcio2022-08-011-0/+27
| | | | | | | | | | | | This can be used to restart a project with specific command line arguments applied. This can work in tandem with `OS.get_cmdline_args()` to restart with the same command line arguments as used to originally run the project. Example use cases: - Restart to apply an user setting change that requires a restart to work. - Restart with a Godot command line argument to change the video driver, audio driver, etc.
* Merge pull request #63733 from akien-mga/file-get_as_text-skip-CRRémi Verschelde2022-08-011-3/+3
|\ | | | | File: Re-add support to skip CR (`\r`) in `File::get_as_text`
| * File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Add support for command-line user arguments.Juan Linietsky2022-08-011-0/+11
|/ | | | | | | | | | Implements the standard Unix double dash (--) commandline argument: * Arguments after a double dash (--) are ignored by Godot and stored for the user. * User can access them via `OS.get_cmdline_user_args()` Example: `godot.exe scene_to_run.tscn --fullscreen -- --start-level 2`
* Expose load_threaded_request's cachemode to GDScriptRobin Arys2022-07-311-3/+3
|
* Swap arguments of ResourceSaver.save()kobewi2022-07-291-4/+4
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-2/+2
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Add a Movie Quit On Finish property to AnimationPlayerHugo Locurcio2022-07-271-0/+6
| | | | | | | | | | | | | | | | | | This quits the project when an animation is done playing in the given AnimationPlayer, but only in Movie Maker mode. When this happens, a message is printed with the absolute path of the AnimationPlayer node that caused the engine to quit. This can be used to create videos that stop at a specified time without having to write any script. A report is now also printed to the console when the video is done recording (as long as the engine was exited properly). This report is unfortunately not always visible in the editor's Output panel, as it's printed too late. A method was also added to get the path to the output file from the scripting API.
* Merge pull request #62973 from bruvzg/sysfont_supportRémi Verschelde2022-07-271-0/+10
|\
| * Implement support for loading system fonts on Linux, macOS / iOS and Windows.bruvzg2022-07-261-0/+10
| |
* | Address remaining scoped storage regressionsFredia Huya-Kouadio2022-07-261-7/+1
|/ | | | | - 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
* Implement a BitField hintreduz2022-07-051-9/+9
| | | | Allows to specify the binder that an enum must be treated as a bitfield.
* Handle custom Callables in Thread.start()kobewi2022-07-011-2/+3
|
* Exposes methods for adding and removing ResourceFormatLoaders and -Savers in ↵leogeier2022-06-291-0/+20
| | | | the ClassDB
* Remove userdata from Thread.start()kobewi2022-06-231-41/+5
|