Example #1
0
        public void SetCustomInbType(int type)
        {
            if (coreInfo.customInbType == type)
            {
                return;
            }

            coreInfo.customInbType = Lib.Utils.Clamp(
                type, 0, Model.Data.Table.customInbTypeNames.Length);

            container.InvokeEventOnPropertyChange();
            if (coreCtrl.IsCoreRunning())
            {
                coreCtrl.RestartCoreThen();
            }
        }
Example #2
0
        public void SetConfig(string newConfig)
        {
            if (coreInfo.config == newConfig)
            {
                return;
            }

            coreInfo.config = newConfig;
            container.InvokeEventOnPropertyChange();
            UpdateSummaryThen(() =>
            {
                container.InvokeEventOnRequireMenuUpdate();
            });

            if (coreCtrl.IsCoreRunning())
            {
                coreCtrl.RestartCoreThen();
            }
        }
Example #3
0
        public void SetConfig(string newConfig)
        {
            var trimed = VgcApis.Libs.Utils.TrimConfig(newConfig);

            if (string.IsNullOrEmpty(trimed) ||
                coreInfo.config == trimed)
            {
                return;
            }

            coreInfo.config = trimed;
            UpdateSummaryThen(() =>
            {
                container.InvokeEventOnPropertyChange();
            });

            if (coreCtrl.IsCoreRunning())
            {
                coreCtrl.RestartCoreThen();
            }
        }