diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 05153ecdb6..c2ac6fc09c 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -811,6 +811,8 @@ static void GameLoop() /* Important: Process input AFTER updating game logic, or input will be acting on song beat from last frame */ HandleInputEvents( fDeltaTime ); + HOOKS->Update( fDeltaTime ); + /* * Render */ diff --git a/stepmania/src/arch/ArchHooks/ArchHooks.h b/stepmania/src/arch/ArchHooks/ArchHooks.h index c939bb7cb5..82c0cf971e 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks.h +++ b/stepmania/src/arch/ArchHooks/ArchHooks.h @@ -40,6 +40,8 @@ public: virtual MessageBoxResult MessageBoxAbortRetryIgnore( CString sMessage, CString ID = "" ) { return ignore; } virtual ~ArchHooks() { } + /* This is called once each time through the game loop */ + virtual void Update(float delta) { } }; #endif