mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Allow USB IDs to be non-unique.
When retrieving USB IDs create a list of players matching to a USB ID instead of assuming only one player. This prevents non-unique IDs overwriting each other and will be used for improved autodetection later. Currently only the first ID is used during detection, and no additional IDs have been added yet. Change-Id: Ieac5594108bae708e364bd2c8df88f61fcdcbdcd
This commit is contained in:
parent
71f70112b2
commit
c659f9979a
3 changed files with 21 additions and 12 deletions
|
|
@ -81,7 +81,7 @@ class SystemInfo : public QObject
|
|||
//! returns a map of all languages
|
||||
static QMap<QString, QStringList> languages(void);
|
||||
//! returns a map of usb-ids and their targets
|
||||
static QMap<int, QString> usbIdMap(enum MapType);
|
||||
static QMap<int, QStringList> usbIdMap(enum MapType type);
|
||||
//! get a value from system settings
|
||||
static QVariant value(enum SystemInfos info);
|
||||
//! get a value from system settings for a named platform.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue