add compile option to disable the intro

saves around 500KB-1MB
This commit is contained in:
tildearrow 2025-06-10 17:17:18 -05:00
parent e923b108d9
commit 9e7ed049a1
7 changed files with 41 additions and 10 deletions

View file

@ -3720,7 +3720,9 @@ bool FurnaceGUI::loop() {
DECLARE_METRIC(grooves)
DECLARE_METRIC(songInfo)
DECLARE_METRIC(orders)
#ifndef NO_INTRO
DECLARE_METRIC(intro)
#endif
DECLARE_METRIC(sampleList)
DECLARE_METRIC(sampleEdit)
DECLARE_METRIC(waveList)
@ -4210,6 +4212,7 @@ bool FurnaceGUI::loop() {
continue;
}
#ifndef NO_INTRO
if (firstFrame && !safeMode && renderBackend!=GUI_BACKEND_SOFTWARE) {
if (!tutorial.introPlayed || settings.alwaysPlayIntro==3 || (settings.alwaysPlayIntro==2 && curFileName.empty())) {
unsigned char* introTemp=new unsigned char[intro_fur_len];
@ -4217,6 +4220,7 @@ bool FurnaceGUI::loop() {
e->load(introTemp,intro_fur_len);
}
}
#endif
if (!e->isRunning()) {
activeNotes.clear();
@ -7108,6 +7112,9 @@ bool FurnaceGUI::loop() {
MEASURE_END(popup);
#ifdef NO_INTRO
introPos=12.0;
#else
if ((!tutorial.introPlayed || settings.alwaysPlayIntro!=0) && renderBackend!=GUI_BACKEND_SOFTWARE) {
MEASURE_BEGIN(intro);
initialScreenWipe=0;
@ -7119,6 +7126,7 @@ bool FurnaceGUI::loop() {
} else {
introPos=12.0;
}
#endif
#ifdef DIV_UNSTABLE
{