diff --git a/stepmania/src/Screen.cpp b/stepmania/src/Screen.cpp index cb70979c9b..292d284e44 100644 --- a/stepmania/src/Screen.cpp +++ b/stepmania/src/Screen.cpp @@ -8,6 +8,7 @@ #include "ScreenManager.h" #include "GameSoundManager.h" #include "ProfileManager.h" +#include "ActorUtil.h" #define NEXT_SCREEN THEME->GetMetric (m_sName,"NextScreen") #define PREV_SCREEN THEME->GetMetric (m_sName,"PrevScreen") @@ -29,6 +30,11 @@ bool Screen::SortMessagesByDelayRemaining(const Screen::QueuedScreenMessage &m1, return m1.fDelayRemaining < m2.fDelayRemaining; } +void Screen::Init() +{ + this->RunCommands( THEME->GetMetricA(m_sName, "InitCommand") ); +} + void Screen::Update( float fDeltaTime ) { ActorFrame::Update( fDeltaTime ); diff --git a/stepmania/src/Screen.h b/stepmania/src/Screen.h index c70d048dc1..d89c712a27 100644 --- a/stepmania/src/Screen.h +++ b/stepmania/src/Screen.h @@ -28,7 +28,7 @@ public: /* This is called immediately after construction, to allow initializing after all derived classes * exist. */ - virtual void Init() { } + virtual void Init(); virtual void Update( float fDeltaTime ); virtual bool OverlayInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );