Ejemplo n.º 1
0
        private static void Process(ProcessDllsDelegate process)
        {
            string log = "";

            if (Global.Debug)
            {
                if (Global.D3D9)
                {
                    process(Global.D3D9D_Dlls, ref log);
                }
                if (Global.D3D11)
                {
                    process(Global.D3D11D_Dlls, ref log);
                }
                if (Global.GL)
                {
                    if (Global.cg)
                    {
                        process(Global.GLD_CG_Dlls, ref log);
                    }
                    else
                    {
                        process(Global.GLD_Dlls, ref log);
                    }
                }
                if (Global.Audio)
                {
                    if (Global.openAL)
                    {
                        process(Global.AudioALD_Dlls, ref log);
                    }
                    else
                    {
                        process(Global.XAudioD_Dlls, ref log);
                    }
                }
                if (Global.Math)
                {
                    process(Global._3DMathD_Dlls, ref log);
                }
                if (Global.Util)
                {
                    process(Global.UtilD_Dlls, ref log);
                }
                if (Global.Engine)
                {
                    process(Global.EngineD_Dlls, ref log);
                }
            }
            else//release
            {
                if (Global.D3D9)
                {
                    process(Global.D3D9_Dlls, ref log);
                }
                if (Global.D3D11)
                {
                    process(Global.D3D11_Dlls, ref log);
                }
                if (Global.GL)
                {
                    if (Global.cg)
                    {
                        process(Global.GL_CG_Dlls, ref log);
                    }
                    else
                    {
                        process(Global.GL_Dlls, ref log);
                    }
                }
                if (Global.Audio)
                {
                    if (Global.openAL)
                    {
                        process(Global.AudioAL_Dlls, ref log);
                    }
                    else
                    {
                        process(Global.XAudio_Dlls, ref log);
                    }
                }
                if (Global.Math)
                {
                    process(Global._3DMath_Dlls, ref log);
                }
                if (Global.Util)
                {
                    process(Global.Util_Dlls, ref log);
                }
                if (Global.Engine)
                {
                    process(Global.Engine_Dlls, ref log);
                }
            }


            form.SetLog(log);
        }
Ejemplo n.º 2
0
        private static void Process(ProcessDllsDelegate process)
        {
            string log = "";
            if (Global.Debug)
            {
                if (Global.D3D9)
                {
                    process(Global.D3D9D_Dlls, ref log);
                }
                if (Global.D3D11)
                {
                    process(Global.D3D11D_Dlls, ref log);
                }
                if (Global.GL)
                {
                    if (Global.cg)
                        process(Global.GLD_CG_Dlls, ref log);
                    else
                        process(Global.GLD_Dlls, ref log);
                }
                if (Global.Audio)
                {
                    if (Global.openAL)
                        process(Global.AudioALD_Dlls, ref log);
                    else
                        process(Global.XAudioD_Dlls, ref log);
                }
                if (Global.Math)
                    process(Global._3DMathD_Dlls, ref log);
                if (Global.Util)
                    process(Global.UtilD_Dlls, ref log);
                if (Global.Engine)
                    process(Global.EngineD_Dlls, ref log);
            }
            else//release
            {
                if (Global.D3D9)
                {
                    process(Global.D3D9_Dlls, ref log);
                }
                if (Global.D3D11)
                {
                    process(Global.D3D11_Dlls, ref log);
                }
                if (Global.GL)
                {
                    if (Global.cg)
                        process(Global.GL_CG_Dlls, ref log);
                    else
                        process(Global.GL_Dlls, ref log);
                }
                if (Global.Audio)
                {
                    if (Global.openAL)
                        process(Global.AudioAL_Dlls, ref log);
                    else
                        process(Global.XAudio_Dlls, ref log);
                }
                if (Global.Math)
                    process(Global._3DMath_Dlls, ref log);
                if (Global.Util)
                    process(Global.Util_Dlls, ref log);
                if (Global.Engine)
                    process(Global.Engine_Dlls, ref log);
            }

            form.SetLog(log);
        }