Make cellMouseGetDataList return CELL_MOUSE_ERROR_NO_DEVICE if mouse handler is set to null

This commit is contained in:
Zion Nimchuk 2017-11-02 18:02:04 -07:00 committed by Ani
parent 4600094829
commit 6782b22637

View File

@ -134,9 +134,14 @@ s32 cellMouseGetData(u32 port_no, vm::ptr<CellMouseData> data)
s32 cellMouseGetDataList(u32 port_no, vm::ptr<CellMouseDataList> data) s32 cellMouseGetDataList(u32 port_no, vm::ptr<CellMouseDataList> data)
{ {
UNIMPLEMENTED_FUNC(sys_io); sys_io.todo("cellMouseGetDataList(port_no=%d, data=0x%x", port_no, data);
if (g_cfg.io.mouse == mouse_handler::null)
return CELL_OK; return CELL_MOUSE_ERROR_NO_DEVICE;
else
{
data->list_num = 0;
return CELL_OK;
}
} }
s32 cellMouseSetTabletMode(u32 port_no, u32 mode) s32 cellMouseSetTabletMode(u32 port_no, u32 mode)