diff options
author | Yotam Barnoy | 2010-06-21 15:13:36 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-06-21 15:13:36 +0000 |
commit | 65fe8d817c627fe56929533a4a0fb4d2c5cb76c2 (patch) | |
tree | 601bf632ba46e17228497441edbf3095e93f421d /backends/platform/psp/osys_psp.cpp | |
parent | 4a4fcb19dd85cd8f3ffc63ef44f033d21b50744e (diff) | |
download | scummvm-rg350-65fe8d817c627fe56929533a4a0fb4d2c5cb76c2.tar.gz scummvm-rg350-65fe8d817c627fe56929533a4a0fb4d2c5cb76c2.tar.bz2 scummvm-rg350-65fe8d817c627fe56929533a4a0fb4d2c5cb76c2.zip |
PSP: moved RTC to singleton to allow usage by classes other than Osystem
svn-id: r50116
Diffstat (limited to 'backends/platform/psp/osys_psp.cpp')
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index 01053b8cbb..b09d9c0c00 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -37,6 +37,7 @@ #include "backends/platform/psp/psppixelformat.h" #include "backends/platform/psp/osys_psp.h" #include "backends/platform/psp/powerman.h" +#include "backends/platform/psp/rtc.h" #include "backends/saves/psp/psp-saves.h" #include "backends/timer/default/default-timer.h" @@ -64,6 +65,9 @@ OSystem_PSP::~OSystem_PSP() {} void OSystem_PSP::initBackend() { DEBUG_ENTER_FUNC(); + // Instantiate real time clock + PspRtc::instance(); + _cursor.enableCursorPalette(false); _cursor.setXY(PSP_SCREEN_WIDTH >> 1, PSP_SCREEN_HEIGHT >> 1); // Mouse in the middle of the screen @@ -320,7 +324,7 @@ bool OSystem_PSP::pollEvent(Common::Event &event) { } uint32 OSystem_PSP::getMillis() { - return _pspRtc.getMillis(); + return PspRtc::instance().getMillis(); } void OSystem_PSP::delayMillis(uint msecs) { |