mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
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)
|
||||
{
|
||||
case MSG_UNKNOWN:
|
||||
return "Unknown";
|
||||
case MSG_RECEIVED:
|
||||
return "received";
|
||||
case MSG_UNRECOGNIZED_COMMAND:
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define MSG_UNKNOWN 0x3a834e55U
|
||||
|
||||
#define MSG_RECEIVED 0xfe0c06acU
|
||||
|
||||
|
3
system.c
3
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";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user