summaryrefslogtreecommitdiffstats
path: root/core/core_bind.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #53053 from LATRio/callable_in_thread_startRémi Verschelde2021-09-281-32/+11
|\
| * Use Callable in Thread::startLATRio2021-09-251-32/+11
| |
* | Fix inversed check inside register_singletonHennadii Chernyshchyk2021-09-281-1/+1
| |
* | Remove `Engine.editor_hint` in favor of `Engine.is_editor_hint()`Hugo Locurcio2021-09-201-2/+0
|/ | | | | | The `Engine.set_editor_hint()` setter method is no longer exposed to scripting, which makes the property effectively read-only from an user perspective.
* Implement `OS::get_locale_language()` helper methodRémi Verschelde2021-09-161-0/+5
| | | | | | | | | This method extracts the 2 or 3-letter language code from `OS::get_locale()`, making it easier for users to identify the "main" language code for users that might have different OS locales due to different OS or region, but should be matched to the same translation (e.g. "generic" Spanish). Fixes #40703.
* Expose enum related methods in ClassDBHaoyu Qiu2021-09-111-0/+41
|
* Rename String::is_rel_path to String::is_relative_pathWilson E. Alvarez2021-08-291-6/+6
|
* Add ability to register singletons from engine APIreduz2021-08-251-2/+33
| | | | | * Exposed functions in Engine to register and unregister singletons. * Added the concept of user singletons, which can be removed (the system ones can't).
* Merge pull request #51627 from mhilbrunner/todo-for-neikeqRémi Verschelde2021-08-181-707/+715
|\
| * Namespaces instead of underscore prefix for bindsMax Hilbrunner2021-08-171-707/+715
| | | | | | | | | | | | Thanks to neikeq for the initial work. Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
* | Merge pull request #51793 from KoBeWi/direnamRémi Verschelde2021-08-171-2/+4
|\ \ | |/ |/| Fix renaming directories
| * Fix renaming directorieskobewi2021-08-171-2/+4
| |
* | Add partial support for Android scoped storage.ne0fhyk2021-08-161-8/+3
|/ | | | | This is done by providing API access to app specific directories which don't have any limitations and allows us to bump the target sdk version to 30. In addition, we're also bumping the min sdk version to 19 as version 18 is no longer supported by Google Play Services and only account of 0.3% of Android devices.
* Rename `iterations_per_second` to `physics_ticks_per_second`Hugo Locurcio2021-08-111-7/+7
| | | | | | | | This makes it clearer that this property is only about physics FPS, not rendering FPS. The `physics_fps` project setting was also renamed to `physics_ticks_per_second` for consistency.
* Use doubles for time in many other placesAaron Franke2021-08-091-7/+7
|
* [Core] Expose ResourceLoader.get_resource_uid.Fabio Alessandrelli2021-08-091-0/+5
|
* Fix logic to allow default null thread argumentPedro J. Estébanez2021-08-081-1/+1
|
* OS: Fix used resource debug printsRémi Verschelde2021-08-061-4/+32
| | | | | | These methods were broken by 22419082d9bedbc9dc060ea5784bb0871f8710a3 5 years ago and nobody complained, so maybe they're not so useful... But at least this should restore them to a working state.
* Fix thread start with no user data when target has no default argumentPedro J. Estébanez2021-07-311-1/+30
|
* Use Ref<T> references as iterators where relevantRémi Verschelde2021-07-261-7/+7
| | | | And const when possible.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-10/+10
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-32/+30
|
* Move `alert` function from `DisplayServer` to `OS`.bruvzg2021-07-221-0/+6
|
* Let thread func have optional parameterFaymoon2021-07-131-1/+2
| | | | Fixes #38042.
* Merge pull request #48359 from Calinou/add-engine-print-error-propertyRémi Verschelde2021-06-201-0/+12
|\
| * Add `Engine.print_error_messages` property to disable printing errorsHugo Locurcio2021-05-011-0/+12
| | | | | | | | | | | | | | | | This can be used during unit test suite runs to hide error and warning messages. Care should be taken when using this feature, as it can hide important information if used wrongly.
* | Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-6/+6
| |
* | Merge pull request #44806 from madmiraal/consolidate_jsonRémi Verschelde2021-06-191-75/+0
|\ \ | | | | | | Consolidate JSON, JSONParseResults and JSONParser into JSON
| * | Consolidate JSON, JSONParseResults and JSONParser into JSONMarcel Admiraal2021-06-191-75/+0
| | | | | | | | | | | | | | | Renames JSON.parse_string() to parse() Renames JSON.decode_data() to stringify()
* | | Expose OS data directory getter methodsHugo Locurcio2021-06-191-0/+18
|/ / | | | | | | | | | | This can be used by editor plugins and non-game applications to store data in the correct directories according to the XDG Base Directory specification.
* | Merge pull request #49123 from aaronfranke/it-is-timeRémi Verschelde2021-06-121-231/+0
|\ \ | | | | | | Add a Time singleton
| * | Add Time singletonAaron Franke2021-06-111-231/+0
| | |
* | | Rename Reference to RefCountedPedro J. Estébanez2021-06-111-1/+1
| | |
* | | Merge pull request #34566 from Heikki00/34541_to_json_precisionRémi Verschelde2021-06-111-3/+3
|\ \ \ | |/ / |/| | Increased String::num default decimal precision
| * | Increase String::num default decimal precisionHeikki Simojoki2021-05-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #34541 Renamed MAX_DIGITS to MAX_DECIMALS, since it only changes the amount of digits after the decimal point. Increased MAX_DECIMALS to 32, and made String::num use MAX_DECIMALS consistently. If -1 is passed as decimal precision to String::num, it now gets changed to the correct precision based on the number's magnitude, instead of using printf default(which is 6) String::num_real also calculates the correct precision now. Also made the types used in floating-point math more consistent in a few places.
* | | Add OS.get_external_data_dir() to get Android external directoryMarcel Admiraal2021-06-101-0/+5
| | |
* | | Merge pull request #48889 from Calinou/file-rename-endian-swapRémi Verschelde2021-06-031-9/+9
|\ \ \ | | | | | | | | Rename File's `endian_swap` to `big_endian`
| * | | Rename File's `endian_swap` to `big_endian`Hugo Locurcio2021-05-201-9/+9
| | | | | | | | | | | | | | | | This new name is more consistent with ResourceSaver and StreamPeer.
* | | | Tweak arguments of list_dir_begin()kobewi2021-05-311-4/+4
| |/ / |/| |
* | | Rename File::get_len() get_length()Marcel Admiraal2021-05-251-4/+4
| | |
* | | OS: Better validation of invalid input for get_unix_time_from_datetimeRémi Verschelde2021-05-241-6/+5
|/ / | | | | | | | | | | | | | | | | Default missing keys to Unix time 0 (1970-01-01 at 00:00:00 UTC). Abort if year <= 0, this is not supported by the current algorithm. Prevents an infinite loop further down. Fixes #49022.
* / Make all file access 64-bit (uint64_t)Pedro J. Estébanez2021-05-171-10/+10
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fix `_File::get_buffer` length always set to p_lengthJohannes2021-04-111-1/+1
|
* Fixes small typos and grammar correctionAnshul7sp12021-03-121-2/+2
|
* [46188] fix: get unix from datetime when empty dictAitor Cereceto2021-03-121-0/+3
|
* Fix negative VRAM valuesEv1lbl0w2021-03-051-1/+1
|
* Remove GDScript bindings for OS.get/set_exit_code, ↵Emmanuel Leblond2021-02-251-16/+0
| | | | SceneTree.quit(<exit_code>) should be used instead
* Improve the `OS.get_environment()`/`OS.set_environment()` documentationHugo Locurcio2021-02-251-3/+3
|
* Expose set_environment to GDScriptBastiaan Olij2021-02-251-0/+5
|
* Merge pull request #46194 from Calinou/os-delay-no-negativeRémi Verschelde2021-02-191-2/+10
|\ | | | | Don't allow negative values for `OS.delay_usec()`/`OS.delay_msec()`