Skip to content

Commit

Permalink
STBL487 2024/11/24
Browse files Browse the repository at this point in the history
  コア:プログラム終了時のPlayListの表示状態を正しく保存出来ていなかったのを修正
  コア:MIDIキーボードを使用しない設定の場合はMIDI INを使用しないように修正
  • Loading branch information
kumatan committed Nov 24, 2024
1 parent 1626b3e commit 051679a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions MDPlayer/MDPlayerx64/form/SYS/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10214,12 +10214,6 @@ public void ForceChannelMaskNES(EnmChip chip, int chipID, int ch, MDChipParams.N

private void StartMIDIInMonitoring()
{
if (setting.midiKbd.MidiInDeviceName == "")
{
log.ForcedWrite("MIDI IN デバイス未設定の為調査完了");
return;
}

if (midiin != null)
{
log.ForcedWrite("使用中のMIDI IN デバイスを解放");
Expand All @@ -10237,12 +10231,18 @@ private void StartMIDIInMonitoring()
}
}

if (setting.midiKbd.UseMIDIKeyboard)
if (!setting.midiKbd.UseMIDIKeyboard)
{
log.ForcedWrite("MIDI Keyboardを使用しない設定の為、MIDI IN デバイスを設定せず完了");
return;
}

if (setting.midiKbd.MidiInDeviceName == "")
{
log.ForcedWrite("MIDI IN デバイス未設定の為調査完了");
return;
}

if (midiin == null)
{
for (int i = 0; i < MidiIn.NumberOfDevices; i++)
Expand Down

0 comments on commit 051679a

Please sign in to comment.