|
@@ -20,16 +20,13 @@
|
|
|
*/
|
|
*/
|
|
|
#include "SDL_internal.h"
|
|
#include "SDL_internal.h"
|
|
|
|
|
|
|
|
-#ifdef SDL_TIME_PS2
|
|
|
|
|
|
|
+#ifdef SDL_TIME_DUMMY
|
|
|
|
|
|
|
|
#include "../SDL_time_c.h"
|
|
#include "../SDL_time_c.h"
|
|
|
|
|
|
|
|
-// PS2 epoch is Jan 1 2000 JST (UTC +9)
|
|
|
|
|
-#define UNIX_EPOCH_OFFSET_SEC 946717200
|
|
|
|
|
-
|
|
|
|
|
-// TODO: Implement this...
|
|
|
|
|
void SDL_GetSystemTimeLocalePreferences(SDL_DateFormat *df, SDL_TimeFormat *tf)
|
|
void SDL_GetSystemTimeLocalePreferences(SDL_DateFormat *df, SDL_TimeFormat *tf)
|
|
|
{
|
|
{
|
|
|
|
|
+ // NOP
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool SDL_GetCurrentTime(SDL_Time *ticks)
|
|
bool SDL_GetCurrentTime(SDL_Time *ticks)
|
|
@@ -38,9 +35,10 @@ bool SDL_GetCurrentTime(SDL_Time *ticks)
|
|
|
return SDL_InvalidParamError("ticks");
|
|
return SDL_InvalidParamError("ticks");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Jan 1, 1970
|
|
|
*ticks = 0;
|
|
*ticks = 0;
|
|
|
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+ return SDL_Unsupported();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime *dt, bool localTime)
|
|
bool SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime *dt, bool localTime)
|
|
@@ -49,7 +47,6 @@ bool SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime *dt, bool localTime)
|
|
|
return SDL_InvalidParamError("dt");
|
|
return SDL_InvalidParamError("dt");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // FIXME: Need implementation
|
|
|
|
|
dt->year = 1970;
|
|
dt->year = 1970;
|
|
|
dt->month = 1;
|
|
dt->month = 1;
|
|
|
dt->day = 1;
|
|
dt->day = 1;
|
|
@@ -60,7 +57,7 @@ bool SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime *dt, bool localTime)
|
|
|
dt->day_of_week = 4;
|
|
dt->day_of_week = 4;
|
|
|
dt->utc_offset = 0;
|
|
dt->utc_offset = 0;
|
|
|
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+ return SDL_Unsupported();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#endif // SDL_TIME_PS2
|
|
|
|
|
|
|
+#endif // SDL_TIME_DUMMY
|