summaryrefslogtreecommitdiffstats
path: root/core/core_bind.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
|
* Make enum/constant binds 64-bit.bruvzg2022-06-171-2/+2
|
* Replace most uses of Map by HashMapreduz2022-05-161-1/+1
| | | | | | | | | | | | * 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!
* Add OS::is_process_running function.mdavisprog2022-05-031-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.
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-7/+7
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Expose move_to_trash()kobewi2022-04-271-0/+5
|
* Fix "File must be opened" error with File.open()nova++2022-04-131-1/+0
|
* Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-1/+1
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-79/+60
|
* Merge pull request #59548 from akien-mga/obj-remove-unused-categoriesRémi Verschelde2022-03-281-5/+0
|\
| * Object: Remove unused category boilerplateRémi Verschelde2022-03-261-5/+0
| | | | | | | | | | | | | | | | | | We might want to re-add something like this if/when we find a good use case for it and do the effort to categorize all objects in the API properly. Until then, it's better to remove that boilerplate since it's not needed. Closes #18711.
* | Add GDExtension support to Scriptreduz2022-03-271-0/+16
|/ | | | | | | | | * Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
* Add static method support to ClassDBreduz2022-03-221-2/+2
| | | | | | | | | * Based on the work done for Variant in the past. * Added `ClassDB::bind_static_method` * Cleaned up ClassDB::bind_method to use variadic templates. This adds support for having static methods in Object derived classes. Note that this does not make it work yet in GDScript or Mono and, while it works for GDExtension, GodotCPP needs to be updated.
* Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde2022-03-111-24/+10
| | | | | | | | `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 #57930 from piiertho/bugfix/add-none-flag-to-resource-saverRémi Verschelde2022-03-071-2/+3
|\
| * Fix ResourceSaver::save method exposition flag parameterPierre-Thomas Meisels2022-03-071-2/+3
| | | | | | | | | | enh: Add FLAG_NONE to SaverFlags in ResourceSaver to fix api inconsistency fix: flags parameter of ResourceSaver::save is now uint32_t to allow flag composition in scripts
* | Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-1/+1
| | | | | | | | | | 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-151-0/+5
| | | | | | | | | | | | | | | | 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-1/+0
| |
* | [Debugger] New extensible EngineProfiler class.Fabio Alessandrelli2022-02-061-55/+10
|/ | | | | Uses GDExtension, replaces old Callable system for profilers, and is also used internally.
* Delete orphaned property default for exit_code which is not exposed any more.strank2022-01-191-1/+0
|
* Merge pull request #56012 from bruvzg/wt🤎4Rémi Verschelde2022-01-171-6/+6
|\
| * [Windows] Improve console handling and execute/create_process.bruvzg2021-12-181-6/+6
| | | | | | | | | | | | | | | | | | | | Always build with the GUI subsystem. Redirect stdout and stderr output to the parent process console. Use CreateProcessW for blocking `execute` calls with piped stdout and stderr (prevent console windows for popping up when used with the GUI subsystem build, and have more consistent behavior with `create_process`). Add `open_console` argument to the `execute` and `create_process` to open a new console window. Remove `interface/editor/hide_console_window` editor setting. Remove `Toggle System Console` menu option. Remove `set_console_visible` and `is_console_visible` functions.
* | Use List Initializations for Vectors.Anilforextra2022-01-121-8/+2
| |
* | Fix missing arg name in bindings for GDExtension APIRémi Verschelde2022-01-071-2/+2
| |
* | Fix method validation in Threadkobewi2022-01-041-1/+1
| |
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | Fix various typosluz paz2022-01-021-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn` Update editor/import/resource_importer_layered_texture.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update doc/classes/TileSetScenesCollectionSource.xml Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/graph_edit.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/rich_text_label.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Revert previously committed change