diff options
Diffstat (limited to 'backends/platform/psp')
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 5 | ||||
-rw-r--r-- | backends/platform/psp/osys_psp.h | 4 |
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(); |