mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
win midi: fallback if no devices found
This commit is contained in:
parent
51ce2f38f4
commit
51ccc03461
@ -1730,6 +1730,12 @@ static int I_WIN_DeviceList(const char *devices[], int size, int *current_device
|
||||
|
||||
GetDevices();
|
||||
|
||||
if (winmm_devices_num == 0 && size > 0)
|
||||
{
|
||||
devices[0] = "MIDI Mapper";
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (i = 0; i < winmm_devices_num && i < size; ++i)
|
||||
{
|
||||
devices[i] = winmm_devices[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user