Unbreak CrashReporter on FreeBSD (#1589)
This commit is contained in:
parent
784cdd7638
commit
474ada9267
6 changed files with 49 additions and 0 deletions
|
|
@ -412,7 +412,11 @@ void logSystemInfo() {
|
|||
|
||||
Debug::log(NONE, "\n");
|
||||
|
||||
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||
const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga");
|
||||
#else
|
||||
const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA");
|
||||
#endif
|
||||
Debug::log(LOG, "GPU information:\n%s\n", GPUINFO.c_str());
|
||||
|
||||
if (GPUINFO.contains("NVIDIA")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue