SDL: PSVita: fix SDL_GetSystemTimeLocalePreferences

From 2e45568338d05286124f0202d55269c92e177cdb Mon Sep 17 00:00:00 2001
From: Ivan Epifanov <[EMAIL REDACTED]>
Date: Tue, 19 Mar 2024 22:29:13 +0300
Subject: [PATCH] PSVita: fix SDL_GetSystemTimeLocalePreferences

---
 src/time/vita/SDL_systime.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/time/vita/SDL_systime.c b/src/time/vita/SDL_systime.c
index 6b165f186375a..29101eb2e5027 100644
--- a/src/time/vita/SDL_systime.c
+++ b/src/time/vita/SDL_systime.c
@@ -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)