Update libretro-common

This commit is contained in:
twinaphex 2018-05-06 17:11:02 +02:00
parent 72fa691c81
commit e18f81eb74
2 changed files with 8 additions and 5 deletions

View File

@ -383,15 +383,16 @@ const char *path_get_extension(const char *path)
* Only '.'s after the last slash are considered.
*
* Returns: path with the extension part removed.
* If there is no extension at the end of path,
* returns a pointer to the unaltered original path.
*/
char *path_remove_extension(char *path)
{
char *last = !string_is_empty(path)
? (char*)strrchr(path_basename(path), '.') : NULL;
if (!last)
return NULL;
if (*last)
*last = '\0';
return path;
*last = '\0';
return path;
}

View File

@ -2368,7 +2368,9 @@ RETRO_API bool retro_unserialize(const void *data, size_t size);
RETRO_API void retro_cheat_reset(void);
RETRO_API void retro_cheat_set(unsigned index, bool enabled, const char *code);
/* Loads a game. */
/* Loads a game.
* Return true to indicate successful loading and false to indicate load failure.
*/
RETRO_API bool retro_load_game(const struct retro_game_info *game);
/* Loads a "special" kind of game. Should not be used,
@ -2378,7 +2380,7 @@ RETRO_API bool retro_load_game_special(
const struct retro_game_info *info, size_t num_info
);
/* Unloads a currently loaded game. */
/* Unloads the currently loaded game. Called before retro_deinit(void). */
RETRO_API void retro_unload_game(void);
/* Gets region of game. */