Merge pull request #66102 from MJacred/feature/getvideoadapterdriverinfo
Fetch video adapter driver name and version from OS
This commit is contained in:
commit
5aadc618b6
11 changed files with 325 additions and 0 deletions
|
|
@ -334,6 +334,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;
|
||||
|
|
@ -549,6 +553,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue