Netplay message for input devices not available.

This commit is contained in:
Gregor Richards 2017-09-12 17:05:01 -04:00
parent fff95facc7
commit c2923f5504
3 changed files with 9 additions and 0 deletions

View File

@ -126,6 +126,10 @@ MSG_HASH(
MSG_NETPLAY_CANNOT_PLAY_NO_SLOTS,
"There are no free player slots"
)
MSG_HASH(
MSG_NETPLAY_CANNOT_PLAY_NOT_AVAILABLE,
"The input devices requested are not available"
)
MSG_HASH(
MSG_NETPLAY_CANNOT_PLAY,
"Cannot switch to play mode"

View File

@ -179,6 +179,7 @@ enum msg_hash_enums
MSG_NETPLAY_CLIENT_HANGUP,
MSG_NETPLAY_CANNOT_PLAY_UNPRIVILEGED,
MSG_NETPLAY_CANNOT_PLAY_NO_SLOTS,
MSG_NETPLAY_CANNOT_PLAY_NOT_AVAILABLE,
MSG_NETPLAY_CANNOT_PLAY,
MSG_NETPLAY_PEER_PAUSED,
MSG_NETPLAY_CHANGED_NICK,

View File

@ -1508,6 +1508,10 @@ static bool netplay_get_cmd(netplay_t *netplay,
dmsg = msg_hash_to_str(MSG_NETPLAY_CANNOT_PLAY_NO_SLOTS);
break;
case NETPLAY_CMD_MODE_REFUSED_REASON_NOT_AVAILABLE:
dmsg = msg_hash_to_str(MSG_NETPLAY_CANNOT_PLAY_NOT_AVAILABLE);
break;
default:
dmsg = msg_hash_to_str(MSG_NETPLAY_CANNOT_PLAY);
}