Print expected os.arch tuple for current platform in GDExtension error
This also adds `Engine.get_architecture_name()` to get the name of the CPU architecture the Godot binary was built for.
This commit is contained in:
parent
862dedcefe
commit
27a072c884
6 changed files with 64 additions and 3 deletions
|
|
@ -2270,6 +2270,10 @@ String Engine::get_license_text() const {
|
|||
return ::Engine::get_singleton()->get_license_text();
|
||||
}
|
||||
|
||||
String Engine::get_architecture_name() const {
|
||||
return ::Engine::get_singleton()->get_architecture_name();
|
||||
}
|
||||
|
||||
bool Engine::is_in_physics_frame() const {
|
||||
return ::Engine::get_singleton()->is_in_physics_frame();
|
||||
}
|
||||
|
|
@ -2367,6 +2371,8 @@ void Engine::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_license_info"), &Engine::get_license_info);
|
||||
ClassDB::bind_method(D_METHOD("get_license_text"), &Engine::get_license_text);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_architecture_name"), &Engine::get_architecture_name);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("is_in_physics_frame"), &Engine::is_in_physics_frame);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("has_singleton", "name"), &Engine::has_singleton);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue