mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Add an error message for NCAgeJoiner failures
Since we have a pfSecurePreloader that doesn't redownload every single launch, I don't feel bad about presenting an error message to the user and killing the client. This is really better than letting them languish at a black screen, groping for the relto book.
This commit is contained in:
@ -47,6 +47,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "plNetTransport/plNetTransportMember.h" // OfferLinkToPlayer()
|
||||
|
||||
#include "plgDispatch.h"
|
||||
#include "pnMessage/plClientMsg.h"
|
||||
#include "pnMessage/plTimeMsg.h"
|
||||
#include "plMessage/plLinkToAgeMsg.h"
|
||||
#include "pnKeyedObject/plKey.h"
|
||||
@ -159,8 +160,19 @@ void plNetLinkingMgr::NCAgeJoinerCallback (
|
||||
void * notify,
|
||||
void * userState
|
||||
) {
|
||||
plNetLinkingMgr * lm = plNetLinkingMgr::GetInstance();
|
||||
NCAgeJoinerCompleteNotify* params = (NCAgeJoinerCompleteNotify*)notify;
|
||||
|
||||
// Tell the user we failed to link.
|
||||
// In the future, we might want to try graceful recovery (link back to Relto?)
|
||||
if (!params->success) {
|
||||
plNetClientMgr::StaticErrorMsg(params->msg);
|
||||
hsMessageBox(params->msg, "Linking Error", hsMessageBoxNormal, hsMessageBoxIconError);
|
||||
plClientMsg* clientMsg = new plClientMsg(plClientMsg::kQuit);
|
||||
clientMsg->Send(hsgResMgr::ResMgr()->FindKey(kClient_KEY));
|
||||
return;
|
||||
}
|
||||
|
||||
plNetLinkingMgr * lm = plNetLinkingMgr::GetInstance();
|
||||
switch (type) {
|
||||
case kAgeJoinerComplete: {
|
||||
ASSERT(joiner == s_ageJoiner);
|
||||
|
Reference in New Issue
Block a user