Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though

svn-id: r44793
This commit is contained in:
Max Horn 2009-10-08 19:41:38 +00:00
parent f5ccaf7e29
commit 42120ed626
33 changed files with 134 additions and 75 deletions

View file

@ -28,8 +28,6 @@
// Multi-slots by Claudio Matsuoka <claudio@helllabs.org>
//
#include <time.h> // for extended infos
#include "common/file.h"
#include "graphics/thumbnail.h"
#include "common/config-manager.h"
@ -79,7 +77,7 @@ int AgiEngine::saveGame(const char *fileName, const char *description) {
Graphics::saveThumbnail(*out);
// Creation date/time
tm curTime;
TimeDate curTime;
_system->getTimeAndDate(curTime);
uint32 saveDate = ((curTime.tm_mday & 0xFF) << 24) | (((curTime.tm_mon + 1) & 0xFF) << 16) | ((curTime.tm_year + 1900) & 0xFFFF);