From 98db614cd81c44f04345e697912b5904ebaa9af4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 7 Jun 2011 13:03:55 +0200 Subject: DS: Use OSystem::_savefileManager slot --- backends/platform/ds/arm9/source/osystem_ds.cpp | 12 ++++-------- backends/platform/ds/arm9/source/osystem_ds.h | 2 -- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'backends/platform/ds') 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; } -- cgit v1.2.3