mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
SS14-1148 Fix MIDI Loading Failing Whilst a MIDI is playing The behaviour of the button event handling did some wonky async handling that got PJB swearing repeatedly in the contributor VC. Improve switching MIDI songs by: 0. Add a bool that tracks if we're currently waiting for the MIDI file browser to terminate. Use this bool to short-circuit the MidiFileButtonOnPressed function, ensuring you don't have to close a morbillion file windows if you spam-clicked the button or forgot you'd opened the window. 1. Remove a four-year-old hack involving waiting 100ms to load a MIDI after trying to stop the last MIDI, because _the rot consumes_ or some shit (cherry picked from commit 1defdebd7bb29cafa1f4cb4ef496ef6928634168)