add intro tune, part 3
This commit is contained in:
parent
234ef5c9b4
commit
b3c3c038ad
3 changed files with 32 additions and 9 deletions
|
|
@ -3437,6 +3437,14 @@ bool FurnaceGUI::loop() {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (firstFrame) {
|
||||
if (!tutorial.introPlayed || settings.alwaysPlayIntro==3 || (settings.alwaysPlayIntro==2 && curFileName.empty())) {
|
||||
unsigned char* introTemp=new unsigned char[intro_fur_len];
|
||||
memcpy(introTemp,intro_fur,intro_fur_len);
|
||||
e->load(introTemp,intro_fur_len);
|
||||
}
|
||||
}
|
||||
|
||||
layoutTimeBegin=SDL_GetPerformanceCounter();
|
||||
|
||||
ImGui_ImplSDLRenderer_NewFrame();
|
||||
|
|
@ -5666,12 +5674,6 @@ bool FurnaceGUI::init() {
|
|||
oldPat[i]=new DivPattern;
|
||||
}
|
||||
|
||||
if ((!tutorial.introPlayed || settings.alwaysPlayIntro>=2) && curFileName.empty()) {
|
||||
unsigned char* introTemp=new unsigned char[intro_fur_len];
|
||||
memcpy(introTemp,intro_fur,intro_fur_len);
|
||||
e->load(introTemp,intro_fur_len);
|
||||
}
|
||||
|
||||
firstFrame=true;
|
||||
|
||||
// TODO: MIDI mapping time!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue