system.c - use msg_hash_to_str

This commit is contained in:
twinaphex 2015-07-02 05:33:21 +02:00
parent 3308ce365f
commit 04b19cfefa
3 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -21,6 +21,7 @@
#include <stdint.h>
#include <stddef.h>
#define MSG_UNKNOWN 0x3a834e55U
#define MSG_RECEIVED 0xfe0c06acU

View File

@ -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";