Merge pull request #149 from retro-wertz/updates

Fix crashing when trying to connect a netplay session
This commit is contained in:
hizzlekizzle
2017-09-10 12:26:39 -05:00
committed by GitHub

View File

@@ -532,6 +532,8 @@ void retro_set_input_state(retro_input_state_t cb)
} }
void retro_set_controller_port_device(unsigned port, unsigned device) void retro_set_controller_port_device(unsigned port, unsigned device)
{
if (port < 2) /* port #0 = player1/player3, port #1 = player2/player4 */
{ {
switch(device) switch(device)
{ {
@@ -543,7 +545,7 @@ void retro_set_controller_port_device(unsigned port, unsigned device)
break; break;
} }
} }
}
void retro_set_environment(retro_environment_t cb) void retro_set_environment(retro_environment_t cb)
{ {