mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 01:38:12 +00:00
Use retro_get_system_info.
This commit is contained in:
parent
1959f0d17b
commit
0cf7e2811e
@ -65,7 +65,10 @@ void ssnes_console_name_from_id(char *name, size_t size)
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
const char *id = snes_library_id();
|
||||
struct retro_system_info info;
|
||||
retro_get_system_info(&info);
|
||||
const char *id = info.library_name ? info.library_name : "Unknown";
|
||||
|
||||
if (!id || strlen(id) >= size)
|
||||
{
|
||||
name[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user