예제 #1
0
        private void InitializeTabLaunch()
        {
            try
            {
                SelectedRenderApiParam = RenderApiParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsRenderApiName));
            }
            catch (Exception)
            {
                SelectedRenderApiParam = RenderApiParams.SingleOrDefault(x => x.Key == "DirectX 11");
            }

            try
            {
                SelectedRenderModeParam = RenderModeParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsRenderModeName));
            }
            catch (Exception)
            {
                SelectedRenderApiParam = RenderModeParams.SingleOrDefault(x => x.Key == "Mono");
            }

            CustomCommonParams   = RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsAdditionalParamsName);
            IsUseAllCores        = RegistrySaver.ReadBoolValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsIsAllCoresName);
            IsNotextureStreaming = RegistrySaver.ReadBoolValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsIsNoTexStreamingName);

            Applications = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegCategoryAppList);
            SetSelectedApp();

            Configs = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegCategoryConfigList);
            SetSelectedConfig();
        }
예제 #2
0
        private void InitializeOptions()
        {
            try
            {
                SelectedRenderApiParam = RenderApiParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.RegParamsList, RegistrySaver.RegRenderApiName));
            }
            catch (Exception)
            {
                SelectedRenderApiParam = RenderApiParams.SingleOrDefault(x => x.Key == "OpenGL3");
            }

            try
            {
                SelectedRenderModeParam = RenderModeParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.RegParamsList, RegistrySaver.RegRenderModeName));
            }
            catch (Exception)
            {
                SelectedRenderApiParam = RenderModeParams.SingleOrDefault(x => x.Key == "Mono");
            }

            CustomCommonParams   = RegistrySaver.ReadStringValue(RegistrySaver.RegParamsList, RegistrySaver.RegAdditionalParamsName);
            IsUseAllCores        = RegistrySaver.ReadBoolValue(RegistrySaver.RegParamsList, RegistrySaver.RegIsAllCoresName);
            IsNotextureStreaming = RegistrySaver.ReadBoolValue(RegistrySaver.RegParamsList, RegistrySaver.RegIsNoTextureStreamingName);
            AppLogger.Add("Application Options initialized");
        }
예제 #3
0
        //Reloading all config lists
        private void InitConfigLists()
        {
            applications = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.appList);
            AppLogger.Add("Applications loaded successfully");
            configs = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.configList);
            SetSelectedConfig();
            AppLogger.Add("Configs loaded successfully");
            AppLogger.Add("List of Active nodes loaded successfully");

            try
            {
                selectedCamera = cameras.First(x => x == RegistrySaver.ReadStringValue(RegistrySaver.paramsList, RegistrySaver.curCamera));
            }
            catch (Exception)
            {
                selectedCamera = cameras.SingleOrDefault(x => x == "camera_dynamic");
            }
        }
예제 #4
0
 private void InitializeTabLog()
 {
     try
     {
         IsCustomLogsUsed            = RegistrySaver.ReadBoolValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsUseCustomLogs);
         SelectedVerbocityPlugin     = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityPlugin), UE4LogVerbosity.Log);
         SelectedVerbocityEngine     = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityEngine), UE4LogVerbosity.Log);
         SelectedVerbocityConfig     = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityConfig), UE4LogVerbosity.Log);
         SelectedVerbocityCluster    = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityCluster), UE4LogVerbosity.Log);
         SelectedVerbocityGame       = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityGame), UE4LogVerbosity.Log);
         SelectedVerbocityGameMode   = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityGameMode), UE4LogVerbosity.Log);
         SelectedVerbocityInput      = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityInput), UE4LogVerbosity.Log);
         SelectedVerbocityVrpn       = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityInputVrpn), UE4LogVerbosity.Log);
         SelectedVerbocityNetwork    = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityNetwork), UE4LogVerbosity.Log);
         SelectedVerbocityNetworkMsg = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityNetworkMsg), UE4LogVerbosity.Log);
         SelectedVerbocityBlueprint  = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityBlueprint), UE4LogVerbosity.Log);
         SelectedVerbocityRender     = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityRender), UE4LogVerbosity.Log);
     }
     catch (Exception ex)
     {
         AppLogger.Log(ex.Message);
     }
 }
예제 #5
0
        private void InitOptions()
        {
            try
            {
                selectedCamera = cameras.First(x => x == RegistrySaver.ReadStringValue(RegistrySaver.paramsList, RegistrySaver.curCamera));
            }
            catch (Exception)
            {
                selectedCamera = cameras.SingleOrDefault(x => x == "camera_dynamic");
            }

            try
            {
                selectedRenderApiParam = renderApiParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.paramsList, RegistrySaver.renderApiName));
            }
            catch (Exception)
            {
                selectedRenderApiParam = renderApiParams.SingleOrDefault(x => x.Key == "OpenGL3");
            }

            try
            {
                selectedRenderModeParam = renderModeParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.paramsList, RegistrySaver.renderModeName));
            }
            catch (Exception)
            {
                selectedRenderApiParam = renderModeParams.SingleOrDefault(x => x.Key == "Mono");
            }


            additionalParams     = RegistrySaver.ReadStringValue(RegistrySaver.paramsList, RegistrySaver.additionalParamsName);
            isUseAllCores        = RegistrySaver.ReadBoolValue(RegistrySaver.paramsList, RegistrySaver.isAllCoresName);
            isFixedSeed          = RegistrySaver.ReadBoolValue(RegistrySaver.paramsList, RegistrySaver.isFixedSeedName);
            isNotextureStreaming = RegistrySaver.ReadBoolValue(RegistrySaver.paramsList, RegistrySaver.isNoTextureStreamingName);
            AppLogger.Add("Application Options initialized");
        }