From 0cf7e2811ee6d5960127bc9a35dc8f00fdcb4f5c Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 9 Apr 2012 23:52:05 +0200 Subject: [PATCH] Use retro_get_system_info. --- console/console_ext.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/console/console_ext.c b/console/console_ext.c index fa78af7066..0223f04b03 100644 --- a/console/console_ext.c +++ b/console/console_ext.c @@ -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';