Disable the time function, after start core is not working fine.

This commit is contained in:
Francisco Javier Trujillo Mata 2019-01-06 23:26:34 +01:00
parent bd9146ed72
commit 3bb0c7caa4

View File

@ -70,24 +70,7 @@ static time_t _gmtotime_t (
return seconds_from_1970;
}
/* Protected methods in libc */
void _ps2sdk_time_init(void)
{
SDL_Init(SDL_INIT_TIMER);
}
/* Protected methods in libc */
void _ps2sdk_time_deinit(void)
{
SDL_QuitSubSystem(SDL_INIT_TIMER);
}
clock_t clock(void)
{
return SDL_GetTicks();
}
time_t time(time_t *t) {
time_t ps2_time(time_t *t) {
time_t tim;
sceCdCLOCK clocktime; /* defined in libcdvd.h */
@ -106,3 +89,26 @@ time_t time(time_t *t) {
return tim;
}
/* Protected methods in libc */
void _ps2sdk_time_init(void)
{
SDL_Init(SDL_INIT_TIMER);
}
/* Protected methods in libc */
void _ps2sdk_time_deinit(void)
{
SDL_QuitSubSystem(SDL_INIT_TIMER);
}
clock_t clock(void)
{
return SDL_GetTicks();
}
time_t time(time_t *t) {
time_t tim = -1;
/* TODO: This function need to be implemented again because the SDK one is not working fine */
return time;
}