Update retroarch.c with kiosk mode fix

Changed string check to function string_is_empty for PS4 compliance!
This commit is contained in:
Lhaete 2025-06-06 08:46:48 -04:00 committed by GitHub
parent 3315e96b2d
commit 67b5da6a50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3465,7 +3465,7 @@ bool command_event(enum event_command cmd, void *data)
/* Kiosk Mode Fix */
case CMD_EVENT_KIOSK:
/* If were already in Kiosk Mode, ask for the Password! */
if (settings->bools.kiosk_mode_enable && settings->paths.kiosk_mode_password != "")
if (settings->bools.kiosk_mode_enable && !string_is_empty(settings->paths.kiosk_mode_password))
{
menu_input_ctx_line_t line;
line.label = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MENU_KIOSK_MODE_PASSWORD);