mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
cellSaveData: Adjust to non-TSX
This commit is contained in:
parent
5d98f3866c
commit
2d45ecff22
@ -1380,6 +1380,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
||||
bool recreated = false;
|
||||
|
||||
lv2_sleep(ppu, 250);
|
||||
ppu.state += cpu_flag::wait;
|
||||
|
||||
// Check if RPCS3_BLIST section exist in PARAM.SFO
|
||||
// This section contains the list of files in the save ordered as they would be in BSD filesystem
|
||||
@ -1523,6 +1524,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
||||
|
||||
// Stat Callback
|
||||
funcStat(ppu, result, statGet, statSet);
|
||||
ppu.state += cpu_flag::wait;
|
||||
|
||||
if (const s32 res = result->result; res != CELL_SAVEDATA_CBRESULT_OK_NEXT)
|
||||
{
|
||||
@ -1689,6 +1691,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
||||
std::memset(result.get_ptr(), 0, ::offset32(&CellSaveDataCBResult::userdata));
|
||||
|
||||
funcFile(ppu, result, fileGet, fileSet);
|
||||
ppu.state += cpu_flag::wait;
|
||||
|
||||
if (const s32 res = result->result; res != CELL_SAVEDATA_CBRESULT_OK_NEXT)
|
||||
{
|
||||
@ -2406,8 +2409,10 @@ error_code cellSaveDataFixedExport(ppu_thread& ppu, vm::cptr<char> dirName, u32
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
error_code cellSaveDataGetListItem(vm::cptr<char> dirName, vm::ptr<CellSaveDataDirStat> dir, vm::ptr<CellSaveDataSystemFileParam> sysFileParam, vm::ptr<u32> bind, vm::ptr<u32> sizeKB)
|
||||
error_code cellSaveDataGetListItem(ppu_thread& ppu, vm::cptr<char> dirName, vm::ptr<CellSaveDataDirStat> dir, vm::ptr<CellSaveDataSystemFileParam> sysFileParam, vm::ptr<u32> bind, vm::ptr<u32> sizeKB)
|
||||
{
|
||||
ppu.state += cpu_flag::wait;
|
||||
|
||||
cellSaveData.warning("cellSaveDataGetListItem(dirName=%s, dir=*0x%x, sysFileParam=*0x%x, bind=*0x%x, sizeKB=*0x%x)", dirName, dir, sysFileParam, bind, sizeKB);
|
||||
|
||||
return savedata_get_list_item(dirName, dir, sysFileParam, bind, sizeKB, 0);
|
||||
|
@ -92,6 +92,8 @@ std::string dump_useful_thread_info();
|
||||
|
||||
error_code sys_tty_write([[maybe_unused]] ppu_thread& ppu, s32 ch, vm::cptr<char> buf, u32 len, vm::ptr<u32> pwritelen)
|
||||
{
|
||||
ppu.state += cpu_flag::wait;
|
||||
|
||||
sys_tty.notice("sys_tty_write(ch=%d, buf=*0x%x, len=%d, pwritelen=*0x%x)", ch, buf, len, pwritelen);
|
||||
|
||||
std::string msg;
|
||||
|
Loading…
Reference in New Issue
Block a user