Backend modularization: Create timer manager, savefile manager and audio mixer in the backends for increased flexibility
svn-id: r24443
This commit is contained in:
parent
df24f1ef4e
commit
07f7761479
19 changed files with 134 additions and 141 deletions
|
@ -27,13 +27,13 @@
|
|||
|
||||
#include "gui/message.h"
|
||||
|
||||
#include "backends/saves/default/default-saves.h"
|
||||
|
||||
#include "common/config-manager.h"
|
||||
#include "common/system.h"
|
||||
#include "common/timer.h"
|
||||
#include "common/util.h"
|
||||
|
||||
#include "sound/mixer.h"
|
||||
|
||||
OSystem *g_system = 0;
|
||||
|
||||
bool OSystem::setGraphicsMode(const char *name) {
|
||||
|
@ -63,23 +63,6 @@ void OSystem::displayMessageOnOSD(const char *msg) {
|
|||
dialog.runModal();
|
||||
}
|
||||
|
||||
Common::SaveFileManager *OSystem::getSavefileManager() {
|
||||
// TODO: Change this to always return the same
|
||||
// instance, instead of a new one each time around...
|
||||
return new DefaultSaveFileManager();
|
||||
}
|
||||
|
||||
Audio::Mixer *OSystem::getMixer() {
|
||||
// FIXME
|
||||
extern Audio::Mixer *g_mixer;
|
||||
return g_mixer;
|
||||
}
|
||||
|
||||
Common::TimerManager *OSystem::getTimerManager() {
|
||||
// FIXME
|
||||
return Common::g_timer;
|
||||
}
|
||||
|
||||
|
||||
bool OSystem::openCD(int drive) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue