private ErrorCode ErrorHandler(ErrorCode errorCode = ErrorCode.NP_ERR_FAILED) { if (errorCode != 0) { ResultCode result = default(ResultCode); Ticketing.GetLastError(out result); if (result.lastError != 0) { OnScreenLog.Add("Error: " + result.className + ": " + result.lastError + ", sce error 0x" + result.lastErrorSCE.ToString("X8")); return(result.lastError); } } return(errorCode); }
private ErrorCode ErrorHandler(ErrorCode errorCode = 3) { if (errorCode != null) { ResultCode resultCode = default(ResultCode); Ticketing.GetLastError(ref resultCode); if (resultCode.lastError != null) { OnScreenLog.Add(string.Concat(new object[] { "Error: ", resultCode.get_className(), ": ", resultCode.lastError, ", sce error 0x", resultCode.lastErrorSCE.ToString("X8") })); return(resultCode.lastError); } } return(errorCode); }