aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2006-10-21 12:03:43 +0000
committerMax Horn2006-10-21 12:03:43 +0000
commitf95f5ed13356233b1f1976c6a793b6e104373a4d (patch)
tree299fd488a8742bcc0245ad3ae3c5e112f6742645 /common
parent772affc7dbb75faad85b69c00b381d12340f809d (diff)
downloadscummvm-rg350-f95f5ed13356233b1f1976c6a793b6e104373a4d.tar.gz
scummvm-rg350-f95f5ed13356233b1f1976c6a793b6e104373a4d.tar.bz2
scummvm-rg350-f95f5ed13356233b1f1976c6a793b6e104373a4d.zip
Added OSystem::getTimerManager and OSystem::getMixer methods (wip)
svn-id: r24405
Diffstat (limited to 'common')
-rw-r--r--common/system.cpp14
-rw-r--r--common/system.h12
2 files changed, 26 insertions, 0 deletions
diff --git a/common/system.cpp b/common/system.cpp
index 614dff6199..d15f026df0 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -31,6 +31,7 @@
#include "common/config-manager.h"
#include "common/system.h"
+#include "common/timer.h"
#include "common/util.h"
OSystem *g_system = 0;
@@ -63,9 +64,22 @@ void OSystem::displayMessageOnOSD(const char *msg) {
}
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;
diff --git a/common/system.h b/common/system.h
index 9508520cc1..1682426ab0 100644
--- a/common/system.h
+++ b/common/system.h
@@ -28,12 +28,17 @@
#include "common/mutex.h"
#include "common/rect.h"
+namespace Audio {
+ class Mixer;
+}
+
namespace Graphics {
struct Surface;
}
namespace Common {
class SaveFileManager;
+ class TimerManager;
}
/**
@@ -970,6 +975,13 @@ public:
/** Savefile management. */
virtual Common::SaveFileManager *getSavefileManager();
+
+ /** TODO */
+ virtual Audio::Mixer *getMixer();
+
+ /** TODO */
+ virtual Common::TimerManager *getTimerManager();
+
//@}
};