コード例 #1
0
        private void ServerCoreFixBtn_Click(object sender, RoutedEventArgs e)
        {
            if (ModifySettings.ModificationSettings.ServerMultiCoreFixInstalled)
            {
                GetSacredGameComponentFiles.GetComponent(
                    new Uri("https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/Mkw_Odf63XgkeF"),
                    Environment.ExpandEnvironmentVariables("%tmp%"),
                    "ServerPatched228.zip", Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName),
                    "GameServer Vanilla", "ServerPatched228.exe", "gameserver.exe");

                ServerCoreFixBtn.SetResourceReference(ContentProperty, "String0092");

                ModifySettings.ModificationSettings.ServerMultiCoreFixInstalled = false;
            }
            else
            {
                GetSacredGameComponentFiles.GetComponent(
                    new Uri("https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/_GHKuy8FdgLaAA"),
                    Environment.ExpandEnvironmentVariables("%tmp%"),
                    "ServerPatched229.zip", Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName),
                    "GameServer Fix", "ServerPatched229.exe", "gameserver.exe");

                ServerCoreFixBtn.SetResourceReference(ContentProperty, "String0093");

                ModifySettings.ModificationSettings.ServerMultiCoreFixInstalled = true;
            }
        }
コード例 #2
0
        public ModifyPageSettingsOne()
        {
            InitializeComponent();

            VeteranModBtn.SetResourceReference(ContentProperty,
                                               !ModifySettings.ModificationSettings.VeteranModUfoInstalled ? "String0088" : "String0089");

            Sacred229PathBtn.SetResourceReference(ContentProperty,
                                                  !ModifySettings.ModificationSettings.SacredUnofficialPatchInstalled ? "String0090" : "String0091");

            ServerCoreFixBtn.SetResourceReference(ContentProperty,
                                                  !ModifySettings.ModificationSettings.ServerMultiCoreFixInstalled ? "String0092" : "String0093");

            Log.Info("Initialization components for app modify page one done!");
        }