| 63 | "See README for more info."; |
| 64 | |
| 65 | void check_SW_HW() |
| 66 | { |
| 67 | static char hwid_buf[64]; |
| 68 | int errors = 0; |
| 69 | int supported = 0; |
| 70 | int profile = -1; |
| 71 | int last_device_index = -1; |
| 72 | |
| 73 | for(int i = 0; i < device_count(); i++) |
| 74 | { |
| 75 | vga_device_t *dev; |
| 76 | dev = device_get(i); |
| 77 | |
| 78 | if(dev->device_index == last_device_index) |
| 79 | { |
| 80 | /* ignore subids for detected device */ |
| 81 | continue; |
| 82 | } |
| 83 | |
| 84 | if(device_ini_get(dev, "inf") != NULL) |
| 85 | { |
| 86 | const char *def_profile = device_ini_get(dev, "default_profile"); |
| 87 | if(def_profile != NULL) |
| 88 | { |
| 89 | profile = strtoul(def_profile, NULL, 0); |
| 90 | } |
| 91 | supported++; |
| 92 | last_device_index = dev->device_index; |
| 93 | } |
| 94 | else |
| 95 | { |
| 96 | if(i > 0) |
| 97 | { |
| 98 | /* dont list same devices */ |
| 99 | vga_device_t *prevdev = device_get(i-1); |
| 100 | if(prevdev->device_index == dev->device_index) |
| 101 | { |
| 102 | continue; |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | if(i > 0) |
| 108 | { |
| 109 | strcat(msg_gpu_names, ", "); |
| 110 | } |
| 111 | |
| 112 | const char *name = device_ini_get(dev, "name"); |
| 113 | if(name) |
| 114 | { |
| 115 | strcat(msg_gpu_names, name); |
| 116 | } |
| 117 | else |
| 118 | { |
| 119 | device_str(dev, hwid_buf, TRUE); |
| 120 | strcat(msg_gpu_names, hwid_buf); |
| 121 | } |
| 122 |
no test coverage detected