Use retro_get_system_info.

This commit is contained in:
Themaister 2012-04-09 23:52:05 +02:00
parent 1959f0d17b
commit 0cf7e2811e

View File

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