PSVita: fix SDL_GetSystemTimeLocalePreferences

main
Ivan Epifanov 2024-03-19 22:29:13 +03:00 committed by Sam Lantinga
parent ba0417db40
commit 2e45568338
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,11 @@
void SDL_GetSystemTimeLocalePreferences(SDL_DATE_FORMAT *df, SDL_TIME_FORMAT *tf)
{
int val;
SceAppUtilInitParam initParam;
SceAppUtilBootParam bootParam;
SDL_zero(initParam);
SDL_zero(bootParam);
sceAppUtilInit(&initParam, &bootParam);
if (sceAppUtilSystemParamGetInt(SCE_SYSTEM_PARAM_ID_DATE_FORMAT, &val) == 0) {
switch (val) {
@ -62,6 +67,8 @@ void SDL_GetSystemTimeLocalePreferences(SDL_DATE_FORMAT *df, SDL_TIME_FORMAT *tf
break;
}
}
sceAppUtilShutdown();
}
int SDL_GetCurrentTime(SDL_Time *ticks)