mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-07-05 22:16:53 +00:00
Update coopnet
This commit is contained in:
parent
1b7cb13733
commit
dc14a30898
7 changed files with 6 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ IMPORT_FAIL = "\\#ffa0a0\\Failed to import\n\\#dcdcdc\\'@'"
|
|||
IMPORT_FAIL_INGAME = "\\#ffa0a0\\Can not import while in-game"
|
||||
COOPNET_CONNECTION_FAILED = "\\#ffa0a0\\Could not connect to CoopNet!"
|
||||
COOPNET_DISCONNECTED = "\\#ffa0a0\\Lost connection to CoopNet!"
|
||||
LOBBY_CREATION_FAILED = "\\#ffa0a0\\Error:\\#dcdcdc\\ Lobby creation failed!"
|
||||
LOBBY_NOT_FOUND = "\\#ffa0a0\\Error:\\#dcdcdc\\ Lobby no longer exists!"
|
||||
LOBBY_JOIN_FAILED = "\\#ffa0a0\\Failed to join the lobby!"
|
||||
LOBBY_PASSWORD_INCORRECT = "\\#ffa0a0\\Entered the wrong lobby password!"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ typedef enum {
|
|||
|
||||
enum MPacketErrorNumber {
|
||||
MERR_NONE,
|
||||
MERR_LOBBY_CREATION_FAILED,
|
||||
MERR_LOBBY_NOT_FOUND,
|
||||
MERR_LOBBY_JOIN_FULL,
|
||||
MERR_LOBBY_JOIN_FAILED,
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -121,6 +121,10 @@ static void coopnet_on_error(enum MPacketErrorNumber error, uint64_t tag) {
|
|||
djui_popup_create(built, 2);
|
||||
}
|
||||
break;
|
||||
case MERR_LOBBY_CREATION_FAILED:
|
||||
djui_popup_create(DLANG(NOTIF, LOBBY_CREATION_FAILED), 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…
Add table
Reference in a new issue