diff --git a/src/common/SoundNull.cxx b/src/common/SoundNull.cxx index faab463e4..f1fa0a0bd 100644 --- a/src/common/SoundNull.cxx +++ b/src/common/SoundNull.cxx @@ -57,7 +57,7 @@ bool SoundNull::load(Serializer& in) } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool SoundNull::save(Serializer& out) +bool SoundNull::save(Serializer& out) const { out.putString("TIASound"); diff --git a/src/common/SoundNull.hxx b/src/common/SoundNull.hxx index 14ea48e4f..3aed3a2e3 100644 --- a/src/common/SoundNull.hxx +++ b/src/common/SoundNull.hxx @@ -136,6 +136,14 @@ class SoundNull : public Sound void adjustVolume(Int8 direction) { } public: + /** + Saves the current state of this device to the given Serializer. + + @param out The serializer device to save to. + @return The result of the save. True on success, false on failure. + */ + bool save(Serializer& out) const; + /** Loads the current state of this device from the given Serializer. @@ -145,12 +153,11 @@ public: bool load(Serializer& in); /** - Saves the current state of this device to the given Serializer. + Get a descriptor for this console class (used in error checking). - @param out The serializer device to save to. - @return The result of the save. True on success, false on failure. + @return The name of the object */ - bool save(Serializer& out); + string name() const { return "TIASound"; } }; #endif