|
|
@ -23,8 +23,13 @@ std::istream& get_uncommented_line(std::istream& is, std::string &line)
|
|
|
|
void parse_pciids()
|
|
|
|
void parse_pciids()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::ifstream file("/usr/share/hwdata/pci.ids");
|
|
|
|
std::ifstream file("/usr/share/hwdata/pci.ids");
|
|
|
|
|
|
|
|
if(file.fail()){
|
|
|
|
|
|
|
|
std::ifstream file("/usr/share/misc/pci.ids");
|
|
|
|
if (file.fail())
|
|
|
|
if (file.fail())
|
|
|
|
printf("MANGOHUD: can't find file pci.ids\n");
|
|
|
|
printf("MANGOHUD: can't find file pci.ids\n");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::string line;
|
|
|
|
std::string line;
|
|
|
|
size_t tabs = 0;
|
|
|
|
size_t tabs = 0;
|
|
|
|
|
|
|
|
|
|
|
|