aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJoost Peters2008-03-19 11:07:27 +0000
committerJoost Peters2008-03-19 11:07:27 +0000
commit2c670730849126f431873ef32b22bca33bfcc8dd (patch)
tree0af210951eeeda1af1b5ac1b2a6bf7cea94abc80 /backends/platform
parent74e5ef5c56f22884c5e198cb6ab6dd2455f525f0 (diff)
downloadscummvm-rg350-2c670730849126f431873ef32b22bca33bfcc8dd.tar.gz
scummvm-rg350-2c670730849126f431873ef32b22bca33bfcc8dd.tar.bz2
scummvm-rg350-2c670730849126f431873ef32b22bca33bfcc8dd.zip
Implement OSystem_PSP::getFilesystemFactory() and OSystemPSP::getTimeAndDate()
svn-id: r31195
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/psp/osys_psp.cpp5
-rw-r--r--backends/platform/psp/osys_psp.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp
index 480b0f31bf..c3e3e3545b 100644
--- a/backends/platform/psp/osys_psp.cpp
+++ b/backends/platform/psp/osys_psp.cpp
@@ -637,6 +637,11 @@ void OSystem_PSP::quit() {
sceKernelExitGame();
}
+void OSystem_PSP::getTimeAndDate(struct tm &t) const {
+ time_t curTime = time(0);
+ t = *localtime(&curTime);
+}
+
void OSystem_PSP::setWindowCaption(const char *caption) {
}
diff --git a/backends/platform/psp/osys_psp.h b/backends/platform/psp/osys_psp.h
index d3e04289ae..a59e927b97 100644
--- a/backends/platform/psp/osys_psp.h
+++ b/backends/platform/psp/osys_psp.h
@@ -26,6 +26,8 @@
#include "common/scummsys.h"
#include "common/system.h"
#include "graphics/surface.h"
+#include "backends/fs/psp/psp-fs-factory.h"
+
#include <SDL.h>
@@ -135,6 +137,8 @@ public:
Common::SaveFileManager *getSavefileManager() { return _savefile; }
Audio::Mixer *getMixer() { return _mixer; }
Common::TimerManager *getTimerManager() { return _timer; }
+ FilesystemFactory *getFilesystemFactory() { return &PSPFilesystemFactory::instance(); }
+ void getTimeAndDate(struct tm &t) const;
virtual void quit();