mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
cellMusic: make selection context valid when setting a playlist
This commit is contained in:
parent
22a1f41ecb
commit
b5dbafb3e2
5 changed files with 9 additions and 7 deletions
|
|
@ -556,7 +556,7 @@ error_code cellMusicSetPlaybackCommand2(s32 command, vm::ptr<void> param)
|
|||
auto& music = g_fxo->get<music_state>();
|
||||
|
||||
if (!music.func)
|
||||
return CELL_MUSIC2_ERROR_GENERIC;
|
||||
return { CELL_MUSIC2_ERROR_GENERIC, "Not initialized" };
|
||||
|
||||
error_code result = CELL_OK;
|
||||
|
||||
|
|
@ -585,7 +585,7 @@ error_code cellMusicSetPlaybackCommand(s32 command, vm::ptr<void> param)
|
|||
auto& music = g_fxo->get<music_state>();
|
||||
|
||||
if (!music.func)
|
||||
return CELL_MUSIC_ERROR_GENERIC;
|
||||
return { CELL_MUSIC_ERROR_GENERIC, "Not initialized" };
|
||||
|
||||
error_code result = CELL_OK;
|
||||
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ void music_selection_context::set_playlist(const std::string& path)
|
|||
content_type = CELL_SEARCH_CONTENTTYPE_MUSIC;
|
||||
playlist.push_back(dir_path + path.substr(vfs_dir_path.length()));
|
||||
}
|
||||
|
||||
valid = true;
|
||||
}
|
||||
|
||||
void music_selection_context::create_playlist(const std::string& new_hash)
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ error_code cellRtcGetCurrentTick(ppu_thread& ppu, vm::ptr<CellRtcTick> pTick)
|
|||
|
||||
error_code cellRtcGetCurrentClock(ppu_thread& ppu, vm::ptr<CellRtcDateTime> pClock, s32 iTimeZone)
|
||||
{
|
||||
cellRtc.notice("cellRtcGetCurrentClock(pClock=*0x%x, iTimeZone=%d)", pClock, iTimeZone);
|
||||
cellRtc.trace("cellRtcGetCurrentClock(pClock=*0x%x, iTimeZone=%d)", pClock, iTimeZone);
|
||||
|
||||
const vm::var<sys_page_attr_t> page_attr;
|
||||
|
||||
|
|
@ -1505,7 +1505,7 @@ error_code cellRtcGetSystemTime(ppu_thread& ppu, vm::cptr<CellRtcDateTime> pDate
|
|||
|
||||
error_code cellRtcGetTime_t(ppu_thread& ppu, vm::cptr<CellRtcDateTime> pDateTime, vm::ptr<s64> piTime)
|
||||
{
|
||||
cellRtc.notice("cellRtcGetTime_t(pDateTime=*0x%x, piTime=*0x%x)", pDateTime, piTime);
|
||||
cellRtc.trace("cellRtcGetTime_t(pDateTime=*0x%x, piTime=*0x%x)", pDateTime, piTime);
|
||||
|
||||
const vm::var<sys_page_attr_t> page_attr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue