mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-03 14:11:10 +00:00
Notify of coopnet incompatibility
This commit is contained in:
parent
f795109e20
commit
5b6888b378
4 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,7 @@ LOBBY_NOT_FOUND = "\\#ffa0a0\\The lobby no longer exists!"
|
|||
LOBBY_JOIN_FULL = "\\#ffa0a0\\The lobby is full!"
|
||||
LOBBY_JOIN_FAILED = "\\#ffa0a0\\Failed to join the lobby!"
|
||||
LOBBY_PASSWORD_INCORRECT = "\\#ffa0a0\\Entered the wrong lobby password!"
|
||||
COOPNET_VERSION = "\\#ffa0a0\\Your version is no longer compatible with CoopNet. Update the game!"
|
||||
|
||||
[CHAT]
|
||||
KICKING = "Kicking '@'!"
|
||||
|
|
|
@ -21,6 +21,7 @@ enum MPacketErrorNumber {
|
|||
MERR_LOBBY_JOIN_FULL,
|
||||
MERR_LOBBY_JOIN_FAILED,
|
||||
MERR_LOBBY_PASSWORD_INCORRECT,
|
||||
MERR_COOPNET_VERSION,
|
||||
MERR_MAX,
|
||||
};
|
||||
|
||||
|
|
Binary file not shown.
|
@ -92,6 +92,10 @@ static void coopnet_on_lobby_left(uint64_t lobbyId, uint64_t userId) {
|
|||
|
||||
static void coopnet_on_error(enum MPacketErrorNumber error) {
|
||||
switch (error) {
|
||||
case MERR_COOPNET_VERSION:
|
||||
djui_popup_create(DLANG(NOTIF, COOPNET_VERSION), 2);
|
||||
network_shutdown(false, false, false, false);
|
||||
break;
|
||||
case MERR_LOBBY_NOT_FOUND:
|
||||
djui_popup_create(DLANG(NOTIF, LOBBY_NOT_FOUND), 2);
|
||||
network_shutdown(false, false, false, false);
|
||||
|
|
Loading…
Reference in a new issue