From de768afbdcf9dd6a588ac975bc56e3fd755091c2 Mon Sep 17 00:00:00 2001 From: MJacred Date: Tue, 11 Oct 2022 12:39:41 +0200 Subject: Fetch video adapter driver name and version from OS on Linux/*BSD and Windows --- doc/classes/OS.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 54f31d7918..a7d535472d 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -451,6 +451,15 @@ [b]Note:[/b] This method is not supported on the web platform. It returns an empty string. + + + + Returns the video adapter driver name and version for the user's currently active graphics card. + The first element holds the driver name, such as [code]nvidia[/code], [code]amdgpu[/code], etc. + The second element holds the driver version. For e.g. the [code]nvidia[/code] driver on a Linux/BSD platform, the version is in the format [code]510.85.02[/code]. For Windows, the driver's format is [code]31.0.15.1659[/code]. + [b]Note:[/b] This method is only supported on the platforms Linux/BSD and Windows. It returns an empty array on other platforms. + + -- cgit v1.2.3