Skip to content

Commit

Permalink
Support STARTUPSONG for the generic startupscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Oct 29, 2024
1 parent 7bbd69e commit f5a0e01
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/common/startscreen/startscreen_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "texturemanager.h"
#include "v_video.h"
#include "v_draw.h"
#include "s_music.h"

// Hexen startup screen
#define ST_PROGRESS_X 64 // Start of notches x screen pos.
Expand Down Expand Up @@ -87,6 +88,14 @@ FGenericStartScreen::FGenericStartScreen(int max_progress)

DrawTexture(twod, tex, imgx, imgy, DTA_DestWidthF, imgwidth, DTA_DestHeightF, imgheight, DTA_VirtualWidthF, scrwidth, DTA_VirtualHeightF, scrheight, DTA_KeepRatio, true, TAG_END);
});

if (!batchrun)
{
if (GameStartupInfo.Song.IsNotEmpty())
{
S_ChangeMusic(GameStartupInfo.Song.GetChars(), true, true);
}
}
}

//==========================================================================
Expand Down

0 comments on commit f5a0e01

Please sign in to comment.