mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
fixed_typemap.hpp: return reference
This commit is contained in:
parent
bbf52f3cea
commit
ea5e837bd6
87 changed files with 3028 additions and 2997 deletions
|
|
@ -967,16 +967,16 @@ s32 cellFsAioRead(vm::ptr<CellFsAio> aio, vm::ptr<s32> id, fs_aio_cb_t func)
|
|||
|
||||
// TODO: detect mount point and send AIO request to the AIO thread of this mount point
|
||||
|
||||
const auto m = g_fxo->get<fs_aio_manager>();
|
||||
auto& m = g_fxo->get<fs_aio_manager>();
|
||||
|
||||
if (!m)
|
||||
if (!m.thread)
|
||||
{
|
||||
return CELL_ENXIO;
|
||||
}
|
||||
|
||||
const s32 xid = (*id = ++g_fs_aio_id);
|
||||
|
||||
m->thread->cmd_list
|
||||
m.thread->cmd_list
|
||||
({
|
||||
{ 1, xid },
|
||||
{ aio, func },
|
||||
|
|
@ -991,16 +991,16 @@ s32 cellFsAioWrite(vm::ptr<CellFsAio> aio, vm::ptr<s32> id, fs_aio_cb_t func)
|
|||
|
||||
// TODO: detect mount point and send AIO request to the AIO thread of this mount point
|
||||
|
||||
const auto m = g_fxo->get<fs_aio_manager>();
|
||||
auto& m = g_fxo->get<fs_aio_manager>();
|
||||
|
||||
if (!m)
|
||||
if (!m.thread)
|
||||
{
|
||||
return CELL_ENXIO;
|
||||
}
|
||||
|
||||
const s32 xid = (*id = ++g_fs_aio_id);
|
||||
|
||||
m->thread->cmd_list
|
||||
m.thread->cmd_list
|
||||
({
|
||||
{ 2, xid },
|
||||
{ aio, func },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue