Merged lots of _mixer->isReady() warnings into a single one in Engine constructor
svn-id: r30871
This commit is contained in:
parent
98c661d70f
commit
88bb567e18
15 changed files with 11 additions and 52 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue