mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
Removed the default OSystem::getTimeAndDate() implementation
svn-id: r32138
This commit is contained in:
parent
732d440d19
commit
6206fb2a18
@ -35,8 +35,6 @@
|
||||
#include "gui/message.h"
|
||||
#include "sound/mixer.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
OSystem *g_system = 0;
|
||||
|
||||
OSystem::OSystem() {
|
||||
@ -124,14 +122,6 @@ void OSystem::clearScreen() {
|
||||
unlockScreen();
|
||||
}
|
||||
|
||||
void OSystem::getTimeAndDate(struct tm &t) const {
|
||||
#ifndef __PLAYSTATION2__
|
||||
// PS2SDK doesn't provide localtime, so this code doesn't compile
|
||||
time_t curTime = time(0);
|
||||
t = *localtime(&curTime);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Include header files needed for the getFilesystemFactory() method.
|
||||
*
|
||||
|
@ -727,8 +727,12 @@ public:
|
||||
/** Delay/sleep for the specified amount of milliseconds. */
|
||||
virtual void delayMillis(uint msecs) = 0;
|
||||
|
||||
/** Get the current time and date. Correspond to time()+localtime(). */
|
||||
virtual void getTimeAndDate(struct tm &t) const;
|
||||
/**
|
||||
* Get the current time and date, in the local timezone.
|
||||
* Corresponds on many systems to the combination of time()
|
||||
* and localtime().
|
||||
*/
|
||||
virtual void getTimeAndDate(struct tm &t) const = 0;
|
||||
|
||||
/**
|
||||
* Return the timer manager singleton. For more information, refer
|
||||
|
Loading…
x
Reference in New Issue
Block a user