add intro tune, part 4

This commit is contained in:
tildearrow 2023-02-24 00:43:58 -05:00
parent b3c3c038ad
commit 34cc78519d
1 changed files with 3 additions and 2 deletions

View File

@ -4639,12 +4639,12 @@ bool FurnaceGUI::loop() {
}
}
if (warnQuit) {
if (warnQuit && introPos<9.0) {
warnQuit=false;
ImGui::OpenPopup("Warning");
}
if (displayError) {
if (displayError && introPos<9.0) {
displayError=false;
ImGui::OpenPopup("Error");
}
@ -5678,6 +5678,7 @@ bool FurnaceGUI::init() {
// TODO: MIDI mapping time!
e->setMidiCallback([this](const TAMidiMessage& msg) -> int {
if (introPos<9.0) return -2;
midiLock.lock();
midiQueue.push(msg);
midiLock.unlock();