applets/controller: Set min_players to have a minimum value of 1.

- Some games like Shipped have a minimum requirement of 0 connected players and is undesired behavior. We must require a minimum of 1 player connected regardless of what games may ask.
merge-requests/60/head
Morph 2020-08-28 09:02:50 +07:00
parent 371226448a
commit f95ea04995
1 changed files with 1 additions and 1 deletions

@ -25,7 +25,7 @@ static Core::Frontend::ControllerParameters ConvertToFrontendParameters(
npad_style_set.raw = private_arg.style_set; npad_style_set.raw = private_arg.style_set;
return { return {
.min_players = header.player_count_min, .min_players = std::max(s8(1), header.player_count_min),
.max_players = header.player_count_max, .max_players = header.player_count_max,
.keep_controllers_connected = header.enable_take_over_connection, .keep_controllers_connected = header.enable_take_over_connection,
.enable_single_mode = header.enable_single_mode, .enable_single_mode = header.enable_single_mode,