1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 08:48:42 +00:00

Create MSG_ERROR

This commit is contained in:
twinaphex 2016-06-30 05:23:22 +02:00
parent 6756501dac
commit 4ea5fe4169
3 changed files with 5 additions and 1 deletions

View File

@ -2092,6 +2092,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return "CRC32 checksum mismatch between content file and saved content checksum in replay file header; replay highly likely to desync on playback.";
case MSG_ERROR_PARSING_ARGUMENTS:
return "Error parsing arguments.";
case MSG_ERROR:
return "Error";
case MSG_FAILED_TO_PATCH:
return "Failed to patch";
case MSG_CONTENT_PATCHED_SUCCESSFULLY_IN:

View File

@ -139,6 +139,7 @@ enum msg_hash_enums
MSG_ERROR_LIBRETRO_CORE_REQUIRES_CONTENT,
MSG_CONTENT_LOADING_SKIPPED_IMPLEMENTATION_WILL_DO_IT,
MSG_PROGRAM,
MSG_ERROR,
MSG_FOUND_SHADER,
MSG_LOADING_HISTORY_FILE,
MSG_COULD_NOT_READ_STATE_FROM_MOVIE,

View File

@ -555,9 +555,10 @@ static bool apply_patch_content(uint8_t **buf,
success = true;
}
else
RARCH_ERR("%s %s: Error #%u\n",
RARCH_ERR("%s %s: %s #%u\n",
msg_hash_to_str(MSG_FAILED_TO_PATCH),
patch_desc,
msg_hash_to_str(MSG_ERROR),
(unsigned)err);
if (success)