Skip to content

Commit

Permalink
The acceleration detecting graphics card.
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jul 24, 2014
1 parent 9c8a089 commit 4cac3a1
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions I-Nex/i-nex/.src/FGraphic.module
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,7 @@

Public Logs As New Logger
Public Sub _inits()
Dim Interfaces_X As String
Dim Avail_Interfaces As Integer
Dim Max_Interfaces As Integer
Dim all_interfaces As String

Logs("Add Interfaces to ComboBox", Logger.Info)
Shell "ls /sys/class/drm/ | grep \"card[0-9]\" | wc -l" Wait To all_interfaces
Max_Interfaces = Val(all_interfaces)
For Avail_Interfaces = 1 To Max_Interfaces
Shell "ls /sys/class/drm/ | grep \"card[0-9]\" | sed -n '" & Avail_Interfaces & "p'" Wait To Interfaces_X
Interfaces_X = Replace(Interfaces_X, "\n", "")
If Interfaces_X Like "*-*" Then
Finfosys.ComboBox8.Add(Interfaces_X)
Endif
Next

Finfosys.ComboBox8.List = Dir("/sys/class/drm/", "*card[0-9]-*")
End

Public Sub _check()
Expand Down

0 comments on commit 4cac3a1

Please sign in to comment.