예제 #1
0
 static public int UnregisterLogCallback_s(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         BuglyAgent.LogCallbackDelegate a1;
         checkDelegate(l, 1, out a1);
         BuglyAgent.UnregisterLogCallback(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
예제 #2
0
        public void Reset()
        {
            if (!GameApp.Options.EnableLog2File)
            {
                return;
            }

#if !UNITY_EDITOR && !DISABLE_BUGLY && UNITY_ANDROID
            if (GameApp.Options.EnableBugly)
            {
                BuglyAgent.UnregisterLogCallback(Application_logMessageReceived);
                return;
            }
#endif
            UnityEngine.Application.logMessageReceivedThreaded -= Application_logMessageReceived;
        }
예제 #3
0
        static int _m_UnregisterLogCallback_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    BuglyAgent.LogCallbackDelegate _handler = translator.GetDelegate <BuglyAgent.LogCallbackDelegate>(L, 1);

                    BuglyAgent.UnregisterLogCallback(_handler);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }