mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-05 20:54:21 +01:00
PhysicalDisk (Windows): detects tape devices
This commit is contained in:
@@ -220,5 +220,17 @@ const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options)
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
wchar_t szTape[32] = L"\\\\.\\Tape";
|
||||
wchar_t* pNum = szTape + strlen("\\\\.\\Tape");
|
||||
for (uint32_t idev = 0; ; ++idev)
|
||||
{
|
||||
_ultow(idev, pNum, 10);
|
||||
|
||||
if (!detectPhysicalDisk(szTape, result, options))
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user