system.c - use msg_hash_to_str
This commit is contained in:
parent
3308ce365f
commit
04b19cfefa
|
@ -20,6 +20,8 @@ const char *msg_hash_to_str_us(uint32_t hash)
|
||||||
{
|
{
|
||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
|
case MSG_UNKNOWN:
|
||||||
|
return "Unknown";
|
||||||
case MSG_RECEIVED:
|
case MSG_RECEIVED:
|
||||||
return "received";
|
return "received";
|
||||||
case MSG_UNRECOGNIZED_COMMAND:
|
case MSG_UNRECOGNIZED_COMMAND:
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#define MSG_UNKNOWN 0x3a834e55U
|
||||||
|
|
||||||
#define MSG_RECEIVED 0xfe0c06acU
|
#define MSG_RECEIVED 0xfe0c06acU
|
||||||
|
|
||||||
|
|
3
system.c
3
system.c
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "dynamic.h"
|
#include "dynamic.h"
|
||||||
|
#include "msg_hash.h"
|
||||||
#include "intl/intl.h"
|
#include "intl/intl.h"
|
||||||
|
|
||||||
#ifdef HAVE_ZLIB
|
#ifdef HAVE_ZLIB
|
||||||
|
@ -69,7 +70,7 @@ void rarch_system_info_init(void)
|
||||||
pretro_get_system_info(&system->info);
|
pretro_get_system_info(&system->info);
|
||||||
|
|
||||||
if (!system->info.library_name)
|
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)
|
if (!system->info.library_version)
|
||||||
system->info.library_version = "v0";
|
system->info.library_version = "v0";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue