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:
Hugo Locurcio 2022-07-20 19:05:49 +02:00
parent 862dedcefe
commit 27a072c884
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
6 changed files with 64 additions and 3 deletions

View file

@ -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);