Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when need_fullpath is false, retro_game_info::path contains the content filename #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion include/libretro.h
Original file line number Diff line number Diff line change
Expand Up @@ -2209,9 +2209,14 @@ 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
* - 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
Expand Down