From 1c960dbe1a1a0b1fa93bc7f29be40e7004fe2b8d Mon Sep 17 00:00:00 2001 From: markwkidd Date: Sat, 25 Aug 2018 13:48:28 -0400 Subject: [PATCH 1/2] retro_game_info::path provides at least basename --- include/libretro.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libretro.h b/include/libretro.h index 86e1652e..1b30f018 100644 --- a/include/libretro.h +++ b/include/libretro.h @@ -2209,7 +2209,8 @@ struct retro_system_info * - retro_game_info::data and retro_game_info::size are invalid * * If need_fullpath is false and retro_load_game() is called: - * - retro_game_info::path may be NULL + * - retro_game_info::path will contain the filename of the content + * being loaded (ie the basename of the content) * - retro_game_info::data and retro_game_info::size are guaranteed * to be valid * From 7198a226ad6f4deb224a1f94edf0348be9122c55 Mon Sep 17 00:00:00 2001 From: markwkidd Date: Sat, 25 Aug 2018 13:55:04 -0400 Subject: [PATCH 2/2] clarify historical behavior --- include/libretro.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/libretro.h b/include/libretro.h index 1b30f018..3d61e052 100644 --- a/include/libretro.h +++ b/include/libretro.h @@ -2210,9 +2210,13 @@ struct retro_system_info * * If need_fullpath is false and retro_load_game() is called: * - retro_game_info::path will contain the filename of the content - * being loaded (ie the basename of the content) + * being loaded (ie the basename of the content). * - retro_game_info::data and retro_game_info::size are guaranteed * to be valid + * - Note: Historically frontends were not guaranteed to return a + * path or filename when need_fullpath is false. Cores needing + * to remain compatible with legacy frontends should ensure that + * retro_game_info::path is valid. * * See also: * - RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY