コード例 #1
0
        public override async Task Initialize()
        {
            IoC.Notif.ShowUnknownProgress();

            IoC.Notif.ShowStatus("Loading misc data...");
            DefaultAdjustments = await MiscLogic.GenerateMiscData(
                IoC.Archiver.LoadGameFileAsync);

            Adjustments = DefaultAdjustments.Clone();

            RefreshControls();
        }
コード例 #2
0
        public override async Task LoadPatch(string path)
        {
            await Initialize();

            IoC.Notif.ShowStatus("Loading misc data...");
            var newAdj = await MiscLogic.GenerateMiscData(f =>
                                                          IoC.Archiver.LoadFileAsync(path, f));

            if (newAdj.SkipIntroLogos.HasValue)
            {
                Adjustments.SkipIntroLogos = newAdj.SkipIntroLogos;
            }
            if (newAdj.RemoveMenuMusic.HasValue)
            {
                Adjustments.RemoveMenuMusic = newAdj.RemoveMenuMusic;
            }

            RefreshControls();
        }