From 427bed263dc09f640e836ad99a216a9c40249e61 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 4 Aug 2003 11:18:55 +0000 Subject: [PATCH] Allow the archhooks to update if needed once per cycle through game loop. This is done after inputs have been handled --- stepmania/src/StepMania.cpp | 2 ++ stepmania/src/arch/ArchHooks/ArchHooks.h | 2 ++ 2 files changed, 4 insertions(+) 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