mirror of https://github.com/PCSX2/pcsx2.git
eda22c241d
Previously, the combobox will reach an indeterminate state whenever it's passed with a value out of range via ComboBoxInit(). To avoid such cases, let's initialize the current selection of the combobox with the front element of the settings vector whenever we detect an out of range value which is not declared in the vector. To reproduce the issue, set "Renderer" to some sort of crazy value like 50 in the GSdx.ini file and it'll mess up the whole GSdx plugin dialog really bad. This patch prevents such undesirable behavior by simply selecting the front element in the vector when we read an unsupported value. |
||
---|---|---|
.. | ||
CDVDnull | ||
CDVDpeops | ||
FWnull | ||
GSdx | ||
GSdx_legacy | ||
GSnull | ||
LilyPad | ||
PadNull | ||
PeopsSPU2 | ||
SPU2null | ||
SSSPSXPAD | ||
USBnull | ||
USBqemu | ||
cdvdGigaherz/src | ||
dev9ghzdrk | ||
dev9null | ||
onepad | ||
spu2-x | ||
xpad | ||
zerogs | ||
zerospu2 | ||
zzogl-pg/opengl | ||
CMakeLists.txt |