mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
@ -278,7 +278,10 @@ void plResPatcher::Finish(bool success)
|
||||
if (success)
|
||||
PatcherLog(kHeader, "--- Patch Completed Successfully ---");
|
||||
else
|
||||
{
|
||||
PatcherLog(kHeader, "--- Patch Killed by Error ---");
|
||||
fProgress->SetAborting();
|
||||
}
|
||||
|
||||
plResPatcherMsg* pMsg = new plResPatcherMsg(success, sLastError);
|
||||
pMsg->Send(); // whoosh... off it goes
|
||||
|
@ -165,11 +165,9 @@ void plNetLinkingMgr::NCAgeJoinerCallback (
|
||||
// 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);
|
||||
plNetClientApp::GetInstance()->ErrorMsg(params->msg);
|
||||
#ifdef PLASMA_EXTERNAL_RELEASE
|
||||
plClientMsg* clientMsg = new plClientMsg(plClientMsg::kQuit);
|
||||
clientMsg->Send(hsgResMgr::ResMgr()->FindKey(kClient_KEY));
|
||||
plNetClientApp::GetInstance()->QueueDisableNet(true, params->msg);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
@ -389,7 +389,6 @@ void plOperationProgress::SetAborting()
|
||||
hsSetBits(fFlags, kAborting);
|
||||
plProgressMgr::GetInstance()->IUpdateCallbackProc(this);
|
||||
fMax = fValue = 0.f;
|
||||
hsClearBits(fFlags, kAborting);
|
||||
}
|
||||
|
||||
void plOperationProgress::SetRetry()
|
||||
|
@ -153,6 +153,7 @@ class plOperationProgress
|
||||
// progress bars above this one know to adjust their totals to not include any amount
|
||||
// that wasn't completed, and will set this progress bar to zero
|
||||
void SetAborting();
|
||||
bool IsAborting() { return hsCheckBits(fFlags, kAborting); }
|
||||
// If you're reusing an existing progress bar to retry a failed operation, call this.
|
||||
// It will set the retry flag, and reset the progress bar so the next update will
|
||||
// count as the first. If you set retry in RegisterOperation, don't use this too.
|
||||
|
Reference in New Issue
Block a user