Merged lots of _mixer->isReady() warnings into a single one in Engine constructor

svn-id: r30871
This commit is contained in:
Max Horn 2008-02-15 17:01:35 +00:00
parent 98c661d70f
commit 88bb567e18
15 changed files with 11 additions and 52 deletions

View file

@ -58,6 +58,16 @@ Engine::Engine(OSystem *syst)
g_engine = this;
_autosavePeriod = ConfMan.getInt("autosave_period");
// FIXME: Get rid of the following again. It is only here temporarily.
// We really should never run with a non-working Mixer, so ought to handle
// this at a much earlier stage. If we *really* want to support systems
// without a working mixer, then we need more work. E.g. we could modify the
// Mixer to immediately drop any streams passed to it. This way, at least
// we don't crash because heaps of (sound) memory get allocated but never
// freed. Of course, there still would be problems with many games...
if (!_mixer->isReady())
warning("Sound initialization failed. This may cause severe problems in some games.");
}
Engine::~Engine() {