public NoStackTrace(LogTypeFlags logTypesFlags) { this.logType = UnityEngine.Application.GetStackTraceLogType(UnityEngine.LogType.Log); this.assertType = UnityEngine.Application.GetStackTraceLogType(UnityEngine.LogType.Assert); this.errorType = UnityEngine.Application.GetStackTraceLogType(UnityEngine.LogType.Error); this.exceptionType = UnityEngine.Application.GetStackTraceLogType(UnityEngine.LogType.Exception); this.warningType = UnityEngine.Application.GetStackTraceLogType(UnityEngine.LogType.Warning); if ((logTypesFlags & LogTypeFlags.Log) != 0) { UnityEngine.Application.SetStackTraceLogType(UnityEngine.LogType.Log, UnityEngine.StackTraceLogType.None); } if ((logTypesFlags & LogTypeFlags.Assert) != 0) { UnityEngine.Application.SetStackTraceLogType(UnityEngine.LogType.Assert, UnityEngine.StackTraceLogType.None); } if ((logTypesFlags & LogTypeFlags.Error) != 0) { UnityEngine.Application.SetStackTraceLogType(UnityEngine.LogType.Error, UnityEngine.StackTraceLogType.None); } if ((logTypesFlags & LogTypeFlags.Exception) != 0) { UnityEngine.Application.SetStackTraceLogType(UnityEngine.LogType.Exception, UnityEngine.StackTraceLogType.None); } if ((logTypesFlags & LogTypeFlags.Warning) != 0) { UnityEngine.Application.SetStackTraceLogType(UnityEngine.LogType.Warning, UnityEngine.StackTraceLogType.None); } }
static object PerformMemberwiseClone(ref object o) { var ins = new UnityEngine.StackTraceLogType(); ins = (UnityEngine.StackTraceLogType)o; return(ins); }
static int set_stackTraceLogType(IntPtr L) { try { UnityEngine.StackTraceLogType arg0 = (UnityEngine.StackTraceLogType)ToLua.CheckObject(L, 2, typeof(UnityEngine.StackTraceLogType)); UnityEngine.Application.stackTraceLogType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_SetStackTraceLogType_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 2); UnityEngine.LogType QPYX_arg0_YXQP = (UnityEngine.LogType)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.LogType)); UnityEngine.StackTraceLogType QPYX_arg1_YXQP = (UnityEngine.StackTraceLogType)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.StackTraceLogType)); UnityEngine.Application.SetStackTraceLogType(QPYX_arg0_YXQP, QPYX_arg1_YXQP); return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int SetStackTraceLogType(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.LogType arg0 = (UnityEngine.LogType)ToLua.CheckObject(L, 1, typeof(UnityEngine.LogType)); UnityEngine.StackTraceLogType arg1 = (UnityEngine.StackTraceLogType)ToLua.CheckObject(L, 2, typeof(UnityEngine.StackTraceLogType)); UnityEngine.Application.SetStackTraceLogType(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetStackTraceLogType(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.LogType arg0 = (UnityEngine.LogType)ToLua.CheckObject(L, 1, typeof(UnityEngine.LogType)); UnityEngine.StackTraceLogType o = UnityEngine.Application.GetStackTraceLogType(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetStackTraceLogType(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.LogType arg0 = (UnityEngine.LogType)LuaDLL.luaL_checknumber(L, 1); UnityEngine.StackTraceLogType o = UnityEngine.Application.GetStackTraceLogType(arg0); LuaDLL.lua_pushinteger(L, (int)o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.StackTraceLogType instance_of_this_method) { ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.Object: { __mStack[ptr_of_this_method->Value] = instance_of_this_method; } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { var t = __domain.GetType(___obj.GetType()) as CLRType; t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method); } } break; case ObjectTypes.StaticFieldReference: { var t = __domain.GetType(ptr_of_this_method->Value); if (t is ILType) { ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.StackTraceLogType[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method; } break; } }
static StackObject *SetStackTraceLogType_44(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.StackTraceLogType stackTraceType = (UnityEngine.StackTraceLogType) typeof(UnityEngine.StackTraceLogType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.LogType logType = (UnityEngine.LogType) typeof(UnityEngine.LogType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); UnityEngine.Application.SetStackTraceLogType(logType, stackTraceType); return(__ret); }
static int SetStackTraceLogType(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.Application.SetStackTraceLogType"); #endif try { ToLua.CheckArgsCount(L, 2); UnityEngine.LogType arg0 = (UnityEngine.LogType)ToLua.CheckObject(L, 1, typeof(UnityEngine.LogType)); UnityEngine.StackTraceLogType arg1 = (UnityEngine.StackTraceLogType)ToLua.CheckObject(L, 2, typeof(UnityEngine.StackTraceLogType)); UnityEngine.Application.SetStackTraceLogType(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _m_GetStackTraceLogType_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { UnityEngine.LogType logType; translator.Get(L, 1, out logType); UnityEngine.StackTraceLogType __cl_gen_ret = UnityEngine.Application.GetStackTraceLogType(logType); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int set_stackTraceLogType(IntPtr L) { UnityEngine.StackTraceLogType arg0 = (UnityEngine.StackTraceLogType)ToLua.CheckObject(L, 2, typeof(UnityEngine.StackTraceLogType)); UnityEngine.Application.stackTraceLogType = arg0; return(0); }