(PSL1GHT) Fix function prototype for 'button' pad driver

(Task save) Fix warning in platform port
This commit is contained in:
twinaphex 2021-08-09 20:25:27 +02:00
parent c6e86caeed
commit 13a2d2419f
2 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ static uint16_t transform_buttons(const padData *data)
);
}
static int16_t ps3_joypad_button(unsigned port, uint16_t joykey)
static int32_t ps3_joypad_button(unsigned port, uint16_t joykey)
{
uint16_t state = 0;
if (port >= MAX_PADS)

View File

@ -738,7 +738,7 @@ static void task_save_handler(retro_task_t *task)
if (!state->data)
{
size_t size;
size_t size = 0;
state->data = content_get_serialized_data(&size);
state->size = (ssize_t)size;
}