mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 05:40:15 -06:00
prevent crash if mic init fails
This commit is contained in:
@ -318,6 +318,7 @@ void FeedMicInput()
|
||||
{
|
||||
int type = Config::MicInputType;
|
||||
if ((type != 1 && MicCommand == 0) ||
|
||||
(type == 1 && MicBufferLength == 0) ||
|
||||
(type == 3 && MicWavBuffer == NULL))
|
||||
{
|
||||
type = 0;
|
||||
|
Reference in New Issue
Block a user