mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
Implement HLE sys_config stack allocation
This commit is contained in:
parent
8ad36e2526
commit
83d71519e0
4 changed files with 58 additions and 0 deletions
|
@ -8,6 +8,9 @@
|
|||
#include "Input/product_info.h"
|
||||
#include "cellPad.h"
|
||||
|
||||
extern void libio_sys_config_init();
|
||||
extern void libio_sys_config_end();
|
||||
|
||||
LOG_CHANNEL(sys_io);
|
||||
|
||||
template<>
|
||||
|
@ -61,6 +64,7 @@ error_code cellPadInit(u32 max_connect)
|
|||
if (max_connect == 0 || max_connect > CELL_MAX_PADS)
|
||||
return CELL_PAD_ERROR_INVALID_PARAMETER;
|
||||
|
||||
libio_sys_config_init();
|
||||
config->max_connect = std::min<u32>(max_connect, CELL_PAD_MAX_PORT_NUM);
|
||||
config->port_setting.fill(CELL_PAD_SETTING_PRESS_OFF | CELL_PAD_SETTING_SENSOR_OFF);
|
||||
return CELL_OK;
|
||||
|
@ -77,6 +81,7 @@ error_code cellPadEnd()
|
|||
if (!config->max_connect.exchange(0))
|
||||
return CELL_PAD_ERROR_UNINITIALIZED;
|
||||
|
||||
libio_sys_config_end();
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue