mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-19 21:52:45 +00:00
Show GPU device ID in system information if available.
This commit is contained in:
parent
c80cc1e87a
commit
915b734cde
@ -514,7 +514,15 @@ void SystemInfoScreen::CreateViews() {
|
||||
const std::string apiNameKey = draw->GetInfoString(InfoField::APINAME);
|
||||
const char *apiName = gr->T(apiNameKey);
|
||||
deviceSpecs->Add(new InfoItem(si->T("3D API"), apiName));
|
||||
deviceSpecs->Add(new InfoItem(si->T("Vendor"), draw->GetInfoString(InfoField::VENDORSTRING)));
|
||||
|
||||
// TODO: Not really vendor, on most APIs it's a device name (GL calls it vendor though).
|
||||
std::string vendorString;
|
||||
if (draw->GetDeviceCaps().deviceID != 0) {
|
||||
vendorString = StringFromFormat("%s (%08x)", draw->GetInfoString(InfoField::VENDORSTRING).c_str(), draw->GetDeviceCaps().deviceID);
|
||||
} else {
|
||||
vendorString = draw->GetInfoString(InfoField::VENDORSTRING);
|
||||
}
|
||||
deviceSpecs->Add(new InfoItem(si->T("Vendor"), vendorString));
|
||||
std::string vendor = draw->GetInfoString(InfoField::VENDOR);
|
||||
if (vendor.size())
|
||||
deviceSpecs->Add(new InfoItem(si->T("Vendor (detected)"), vendor));
|
||||
|
Loading…
x
Reference in New Issue
Block a user