Skip to content

Commit 0b11934

Browse files
committed
Localize and log failed playlist launch
1 parent 69d4c9a commit 0b11934

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

intl/msg_hash_us.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14734,6 +14734,10 @@ MSG_HASH(
1473414734
MSG_FAILED_TO_LOAD_CONTENT,
1473514735
"Failed to load content."
1473614736
)
14737+
MSG_HASH(
14738+
MSG_FAILED_TO_LOAD_FROM_PLAYLIST,
14739+
"Failed to load from playlist."
14740+
)
1473714741
MSG_HASH(
1473814742
MSG_FAILED_TO_LOAD_MOVIE_FILE,
1473914743
"Failed to load movie file."

menu/cbs/menu_cbs_ok.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2891,11 +2891,12 @@ static int action_ok_playlist_entry_collection(const char *path,
28912891
core_path, content_path, string_is_empty(content_label) ? NULL : content_label);
28922892

28932893
error:
2894-
runloop_msg_queue_push(
2895-
"File could not be loaded from playlist.\n",
2896-
STRLEN_CONST("File could not be loaded from playlist.\n"),
2897-
1, 100, true,
2898-
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR);
2894+
{
2895+
const char *_msg = msg_hash_to_str(MSG_FAILED_TO_LOAD_FROM_PLAYLIST);
2896+
RARCH_ERR("[Content] %s\n", _msg);
2897+
runloop_msg_queue_push(_msg, strlen(_msg), 1, 100, true, NULL,
2898+
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_ERROR);
2899+
}
28992900

29002901
/* Single-click playlist return */
29012902
if (settings->bools.input_menu_singleclick_playlists)

msg_hash.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ enum msg_hash_enums
470470
MSG_FAILED_TO_SAVE_SRAM,
471471
MSG_FAILED_TO_LOAD_SRAM,
472472
MSG_STATE_SIZE,
473+
MSG_FAILED_TO_LOAD_FROM_PLAYLIST,
473474
MSG_FAILED_TO_LOAD_CONTENT,
474475
MSG_COULD_NOT_READ_CONTENT_FILE,
475476
MSG_SAVED_SUCCESSFULLY_TO,

0 commit comments

Comments
 (0)