예제 #1
0
        public static void DoDefaultInitsAfterApplicationStartup()
        {
#if RelMono
            SetServerCertificateValidationCallback();
#endif

            Settings.SettingsConfigFilePath = Path.Combine(MyDataPath, "Settings.json");

            // Set proxy settings
            SetDefaultProxyAuthentification();

            // Set Style
            Publics.SetVisualTheme();

            // Set language
            SetCurrentLanguageCulture(Settings.General.Language);

            // Set File Path Config
            SetSM64LibFilePathConfigs();

            // Watch Events for PatchScriptManager
            SM64Lib.Patching.PatchingManager.ProcessingInputValue += PatchingManager_ProcessingInputValue;

            // Set paths to Assimp-Libs
            Pilz.S3DFileParser.AssimpModule.AssimpLoader.PathToAssimpLib32 = Path.Combine(MyDataPath, @"Lib\Assimp32.dll");
            Pilz.S3DFileParser.AssimpModule.AssimpLoader.PathToAssimpLib64 = Path.Combine(MyDataPath, @"Lib\Assimp64.dll");

            // Do waiting auto jobs
            JobToDoManager.ExecuteStartupJobsToDo();
            Settings.MySettingsManager.AutoSavingSettings += (_, __) => JobToDoManager.ExecuteExitJobsToDo();
        }
예제 #2
0
        /// <param name="strmodul"></param>
        /// <param name="mode">0 = Loader; 1 = Exporter</param>
        public static string GetExtensionFilter(string strmodul, byte mode)
        {
            var modul = mode == 0 ? Publics.GetLoaderModuleFromID(strmodul) : Publics.GetExporterModuleFromID(strmodul);

            return(GetExtensionFilter(modul));
        }