MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / ParseErrorCode

Method ParseErrorCode

Source/Client/NM_Engine/NM_App.cpp:586–608  ·  view source on GitHub ↗

Error parser

Source from the content-addressed store, hash-verified

584
585// Error parser
586bool CNM_App::ParseErrorCode(DWORD dwErrorCode)
587{
588 auto szMessage = std::string("");
589
590 switch (dwErrorCode)
591 {
592 case INIT_ERR_SUCCESS:
593 {
594 szMessage = xorstr("Initilization succesfully completed!").crypt_get();
595 } break;
596
597 default:
598 {
599 szMessage = m_nmFunctions->CreateString(xorstr("Init - Unknown error handled! App: %d(%s): Error ID: %u").crypt_get(),
600 m_nmData->GetAppType(), GetAppTypeName(m_nmData->GetAppType()).c_str(), dwErrorCode);
601 } break;
602 }
603
604 DEBUG_LOG(LL_ERR, szMessage.c_str());
605 m_nmFunctions->ServiceMessageBox2(xorstr("NoMercy Error | Init").crypt_get(), szMessage.c_str(), MB_ICONERROR);
606
607 return true;
608}
609
610// Close handler
611void CNM_App::OnCloseRequest(EExitErrorCodes ullErrorCode, DWORD dwSystemErrorCode, LPVOID lpParam)

Callers

nothing calls this directly

Calls 4

GetAppTypeNameFunction · 0.85
CreateStringMethod · 0.80
GetAppTypeMethod · 0.80
ServiceMessageBox2Method · 0.80

Tested by

no test coverage detected