mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 00:45:37 +00:00
cellSearch: fix cellSearchStartListSearch
Fixes listing BGM in Gundam. The returned content was always empty. Playback of the tracks will still require a MusicSelectionContext and cellMusic playback, which isn't implemented yet.
This commit is contained in:
parent
0a34403ef8
commit
b1a9e87ecf
2 changed files with 31 additions and 21 deletions
|
|
@ -21,4 +21,15 @@ namespace utils
|
|||
};
|
||||
|
||||
std::pair<bool, media_info> get_media_info(const std::string& path, s32 av_media_type);
|
||||
|
||||
template <typename D>
|
||||
void parse_metadata(D& dst, const utils::media_info& mi, const std::string& key, const std::string& def, usz max_length)
|
||||
{
|
||||
std::string value = mi.get_metadata<std::string>(key, def);
|
||||
if (value.size() > max_length)
|
||||
{
|
||||
value.resize(max_length);
|
||||
}
|
||||
strcpy_trunc(dst, value);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue