mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Update libretro-common
This commit is contained in:
parent
72fa691c81
commit
e18f81eb74
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user