summaryrefslogtreecommitdiff
path: root/core/core_bind.cpp
diff options
context:
space:
mode:
authorMJacred <loesch.benny92@gmx.de>2022-10-11 12:39:41 +0200
committerMJacred <loesch.benny92@gmx.de>2022-10-11 12:39:41 +0200
commitde768afbdcf9dd6a588ac975bc56e3fd755091c2 (patch)
tree94726f9b9f2b696f70878e94da08a5407c78776d /core/core_bind.cpp
parent63c0dc690e06731224e88911ed16d1b798b681b5 (diff)
Fetch video adapter driver name and version from OS on Linux/*BSD and Windows
Diffstat (limited to 'core/core_bind.cpp')
-rw-r--r--core/core_bind.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp
index ba48adff6a..c506403133 100644
--- a/core/core_bind.cpp
+++ b/core/core_bind.cpp
@@ -330,6 +330,10 @@ String OS::get_version() const {
return ::OS::get_singleton()->get_version();
}
+Vector<String> OS::get_video_adapter_driver_info() const {
+ return ::OS::get_singleton()->get_video_adapter_driver_info();
+}
+
Vector<String> OS::get_cmdline_args() {
List<String> cmdline = ::OS::get_singleton()->get_cmdline_args();
Vector<String> cmdlinev;
@@ -548,6 +552,8 @@ void OS::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_cmdline_args"), &OS::get_cmdline_args);
ClassDB::bind_method(D_METHOD("get_cmdline_user_args"), &OS::get_cmdline_user_args);
+ ClassDB::bind_method(D_METHOD("get_video_adapter_driver_info"), &OS::get_video_adapter_driver_info);
+
ClassDB::bind_method(D_METHOD("set_restart_on_exit", "restart", "arguments"), &OS::set_restart_on_exit, DEFVAL(Vector<String>()));
ClassDB::bind_method(D_METHOD("is_restart_on_exit_set"), &OS::is_restart_on_exit_set);
ClassDB::bind_method(D_METHOD("get_restart_on_exit_arguments"), &OS::get_restart_on_exit_arguments);