From: kub Date: Wed, 14 Feb 2024 23:01:09 +0000 (+0100) Subject: psp, fix for pspdev update X-Git-Tag: v2.00~121 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33bde0c3c55309fcb9e2b8fb733621fac9010448;p=picodrive.git psp, fix for pspdev update --- diff --git a/platform/psp/psp.c b/platform/psp/psp.c index 081723af..0a53cce7 100644 --- a/platform/psp/psp.c +++ b/platform/psp/psp.c @@ -257,14 +257,14 @@ char *psp_get_status_line(void) { static char buff[64]; int ret, bat_percent, bat_time; - pspTime time; + ScePspDateTime time; ret = sceRtcGetCurrentClockLocalTime(&time); bat_percent = scePowerGetBatteryLifePercent(); bat_time = scePowerGetBatteryLifeTime(); if (ret < 0 || bat_percent < 0 || bat_time < 0) return NULL; - snprintf(buff, sizeof(buff), "%02i:%02i bat: %3i%%", time.hour, time.minutes, bat_percent); + snprintf(buff, sizeof(buff), "%02i:%02i bat: %3i%%", time.hour, time.minute, bat_percent); if (!scePowerIsPowerOnline()) snprintf(buff+strlen(buff), sizeof(buff)-strlen(buff), " (%i:%02i)", bat_time/60, bat_time%60); return buff;