mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X: Tweak the quick fix in the previous rev a little: also select the default device if a GUID is specified but not present in the enumeration.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5317 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
aa54e28add
commit
179246a4eb
|
@ -298,7 +298,7 @@ private:
|
||||||
for(int i=0;i<ndevs;i++)
|
for(int i=0;i<ndevs;i++)
|
||||||
{
|
{
|
||||||
SendMessage(GetDlgItem(hWnd,IDC_DS_DEVICE),CB_ADDSTRING,0,(LPARAM)m_devices[i].name.c_str());
|
SendMessage(GetDlgItem(hWnd,IDC_DS_DEVICE),CB_ADDSTRING,0,(LPARAM)m_devices[i].name.c_str());
|
||||||
if(haveGuid && IsEqualGUID(m_devices[i].guid,DevGuid) || !haveGuid && !m_devices[i].hasGuid)
|
if(haveGuid && IsEqualGUID(m_devices[i].guid,DevGuid) || tSel < 0 && !m_devices[i].hasGuid)
|
||||||
tSel = i;
|
tSel = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue