aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorMax Horn2011-06-07 13:03:55 +0200
committerMax Horn2011-06-07 14:57:58 +0200
commit98db614cd81c44f04345e697912b5904ebaa9af4 (patch)
treeccd5cd3ba5a9608f08a7a2813d0a58728ef9b7be /backends/platform
parentf13e6717598efe32b15dab79389c6f21b9e2294a (diff)
downloadscummvm-rg350-98db614cd81c44f04345e697912b5904ebaa9af4.tar.gz
scummvm-rg350-98db614cd81c44f04345e697912b5904ebaa9af4.tar.bz2
scummvm-rg350-98db614cd81c44f04345e697912b5904ebaa9af4.zip
DS: Use OSystem::_savefileManager slot
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.cpp12
-rw-r--r--backends/platform/ds/arm9/source/osystem_ds.h2
2 files changed, 4 insertions, 10 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp
index 6cc76f51a5..8fbe5ac934 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.cpp
+++ b/backends/platform/ds/arm9/source/osystem_ds.cpp
@@ -107,6 +107,10 @@ void OSystem_DS::initBackend() {
ConfMan.setInt("autosave_period", 0);
ConfMan.setBool("FM_medium_quality", true);
+ if (DS::isGBAMPAvailable()) {
+ _savefileManager = &mpSaveManager;
+ }
+
_timerManager = new DefaultTimerManager();
DS::setTimerCallback(&OSystem_DS::timerHandler, 10);
@@ -746,14 +750,6 @@ void OSystem_DS::quit() {
swiSoftReset();*/
}
-Common::SaveFileManager *OSystem_DS::getSavefileManager() {
- if (DS::isGBAMPAvailable()) {
- return &mpSaveManager;
- }
- return NULL;
-}
-
-
Graphics::Surface *OSystem_DS::createTempFrameBuffer() {
// Ensure we copy using 16 bit quantities due to limitation of VRAM addressing
diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h
index ad306b5e3b..b8a12a5808 100644
--- a/backends/platform/ds/arm9/source/osystem_ds.h
+++ b/backends/platform/ds/arm9/source/osystem_ds.h
@@ -138,8 +138,6 @@ public:
virtual void quit();
- virtual Common::SaveFileManager *getSavefileManager();
-
void addEvent(const Common::Event& e);
bool isEventQueueEmpty() const { return queuePos == 0; }