Пример #1
0
        internal static void Initialize()
        {
            /* Don't overwrite application log hooks! */
            if (FNALoggerEXT.LogInfo == null)
            {
                FNALoggerEXT.LogInfo = Console.WriteLine;
            }
            if (FNALoggerEXT.LogWarn == null)
            {
                FNALoggerEXT.LogWarn = Console.WriteLine;
            }
            if (FNALoggerEXT.LogError == null)
            {
                FNALoggerEXT.LogError = Console.WriteLine;
            }

            /* Try to hook into the FNA3D logging system */
            try
            {
                FNA3D.FNA3D_HookLogFunctions(
                    LogInfoFunc,
                    LogWarnFunc,
                    LogErrorFunc
                    );
            }
            catch (DllNotFoundException)
            {
                /* Nothing to see here... */
            }
        }
Пример #2
0
 internal static void HookFNA3D()
 {
     /* Try to hook into the FNA3D logging system */
     try
     {
         FNA3D.FNA3D_HookLogFunctions(
             LogInfoFunc,
             LogWarnFunc,
             LogErrorFunc
             );
     }
     catch (DllNotFoundException)
     {
         /* Nothing to see here... */
     }
 }