| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
Implement and expose OS::shell_show_in_file_manager()
|
| | |
|
|/
|
|
| |
of old `get_free_static_memory`.
|
|
|
|
| |
Engine::register_script_language returns a Error
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
Improve documentation for `OS.read_string_from_stdin()`
|
| |
| |
| |
| |
| |
| | |
This makes it clearer that calls to this method are blocking.
The unused method parameter was also removed.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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".
|
|/
|
|
| |
Well, they were duplicately-exposed, but triplicately-defined.
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| | |
Implement adjusting the maximum number of physics steps per rendered frame
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
Polish rendering driver refactor further (take 2)
|
| |/ |
|
|\ \
| |/
|/|
| | |
Fetch video adapter driver name and version from OS
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | | |
Remove `NO_THREADS` fallback code, Godot 4 requires thread support
|
| | |
| | |
| | |
| | |
| | | |
This also removes `OS::can_use_threads` from the public API since it's always
true.
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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?).
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
Replace File/Directory with FileAccess/DirAccess
|
| | |/
| |/| |
|
|/ / |
|
|/
|
|
|
|
| |
supports: LinuxBSD, Windows, macOS, iOS, Android, UWP
Co-authored-by: bruvzg
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|\
| |
| | |
Remove unimplemented `OS.dump_memory_to_file()` method
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|/ |
|
|
|
|
|
| |
This also adds `Engine.get_architecture_name()` to get the name of the
CPU architecture the Godot binary was built for.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
| |
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`
|
| |
|
| |
|
|
|
|
|
| |
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind().
Changed all uses of it to Callable.bind()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\ |
|
| | |
|
|/
|
|
|
| |
- 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
|
|
|
|
| |
Allows to specify the binder that an enum must be treated as a bitfield.
|
| |
|
|
|
|
| |
the ClassDB
|
| |
|