From 75aea8225637bb47e44543ed624f5861cb27c204 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 12 May 2018 18:07:47 +0200 Subject: [PATCH] Squashed 'libretro-common/' changes from 71b08aa6b3..705d72b4a3 705d72b4a3 Merge pull request #74 from markwkidd/patch-1 3a06bdd07a update description of the "save" directory git-subtree-dir: libretro-common git-subtree-split: 705d72b4a30f8096118df443246c6e5c9e1f7e99 --- include/libretro.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/include/libretro.h b/include/libretro.h index ff70552ee0..2516bba4ee 100644 --- a/include/libretro.h +++ b/include/libretro.h @@ -778,17 +778,18 @@ enum retro_mod */ #define RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY 31 /* const char ** -- - * Returns the "save" directory of the frontend. - * This directory can be used to store SRAM, memory cards, - * high scores, etc, if the libretro core + * Returns the "save" directory of the frontend, unless there is no + * save directory available. The save directory should be used to + * store SRAM, memory cards, high scores, etc, if the libretro core * cannot use the regular memory interface (retro_get_memory_data()). * - * NOTE: libretro cores used to check GET_SYSTEM_DIRECTORY for - * similar things before. - * They should still check GET_SYSTEM_DIRECTORY if they want to - * be backwards compatible. - * The path here can be NULL. It should only be non-NULL if the - * frontend user has set a specific save path. + * If the frontend cannot designate a save directory, it will return + * NULL to indicate that the core should attempt to operate without a + * save directory set. + * + * NOTE: early libretro cores used the system directory for save + * files. Cores that need to be backwards-compatible can still check + * GET_SYSTEM_DIRECTORY. */ #define RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO 32 /* const struct retro_system_av_info * --