diff options
author | Paul Gilbert | 2016-03-19 08:08:01 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-19 08:08:01 -0400 |
commit | 2665e0e08f0f1c8e70738dad793de20176e0d9c4 (patch) | |
tree | dde10074c2fbd35297b50a1a5d30d754dea5b124 /engines/titanic/sound | |
parent | 3a42c8ca449248dfc67a98f3bedd65c237d06fa0 (diff) | |
download | scummvm-rg350-2665e0e08f0f1c8e70738dad793de20176e0d9c4.tar.gz scummvm-rg350-2665e0e08f0f1c8e70738dad793de20176e0d9c4.tar.bz2 scummvm-rg350-2665e0e08f0f1c8e70738dad793de20176e0d9c4.zip |
TITANIC: Added various preSave and postSave methods
Diffstat (limited to 'engines/titanic/sound')
-rw-r--r-- | engines/titanic/sound/sound.h | 10 | ||||
-rw-r--r-- | engines/titanic/sound/sound_manager.h | 5 |
2 files changed, 14 insertions, 1 deletions
diff --git a/engines/titanic/sound/sound.h b/engines/titanic/sound/sound.h index 1b98507a93..fce29eb625 100644 --- a/engines/titanic/sound/sound.h +++ b/engines/titanic/sound/sound.h @@ -56,6 +56,16 @@ public: * Called when loading a game is complete */ void postLoad() { _soundManager.postLoad(); } + + /** + * Called when a game is about to be saved + */ + void preSave() { _soundManager.preSave(); } + + /** + * Called when a game has finished being saved + */ + void postSave() { _soundManager.postSave(); } }; } // End of namespace Titanic diff --git a/engines/titanic/sound/sound_manager.h b/engines/titanic/sound/sound_manager.h index 6a2e5a79d3..99513aefe8 100644 --- a/engines/titanic/sound/sound_manager.h +++ b/engines/titanic/sound/sound_manager.h @@ -73,7 +73,10 @@ public: */ virtual void postLoad() {} - virtual void proc26() {} + /** + * Called when a game is about to be saved + */ + virtual void preSave() {} /** * Save the data for the class to file |