Example #1
0
 private ErrorCode ErrorHandler(ErrorCode errorCode = ErrorCode.NP_ERR_FAILED)
 {
     if (errorCode != 0)
     {
         ResultCode result = default(ResultCode);
         Matching.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);
         Matching.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);
 }