From 04b19cfefa5db07d270394f72dce180d0b86bce5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Jul 2015 05:33:21 +0200 Subject: [PATCH] system.c - use msg_hash_to_str --- intl/msg_hash_us.c | 2 ++ msg_hash.h | 1 + system.c | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index 1fcc2fe386..4b58916385 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -20,6 +20,8 @@ const char *msg_hash_to_str_us(uint32_t hash) { switch (hash) { + case MSG_UNKNOWN: + return "Unknown"; case MSG_RECEIVED: return "received"; case MSG_UNRECOGNIZED_COMMAND: diff --git a/msg_hash.h b/msg_hash.h index 4457981329..a7957a60b7 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -21,6 +21,7 @@ #include #include +#define MSG_UNKNOWN 0x3a834e55U #define MSG_RECEIVED 0xfe0c06acU diff --git a/system.c b/system.c index db579be37b..a62f811758 100644 --- a/system.c +++ b/system.c @@ -17,6 +17,7 @@ #include "system.h" #include "dynamic.h" +#include "msg_hash.h" #include "intl/intl.h" #ifdef HAVE_ZLIB @@ -69,7 +70,7 @@ void rarch_system_info_init(void) pretro_get_system_info(&system->info); if (!system->info.library_name) - system->info.library_name = "Unknown"; + system->info.library_name = msg_hash_to_str(MSG_UNKNOWN); if (!system->info.library_version) system->info.library_version = "v0";