public override void Initialize()
        {
            base.Initialize();

            var progress = new Progress <BuilderProgress>();

            progress.ProgressChanged += BuilderOnProgress;

            _context                   = new AdminPatcherUpdateContext(CurrentWindow.AdminSettings, progress);
            _context.Logger            = new MHLab.Patch.Utilities.Logging.Logger(CurrentWindow.AdminSettings.GetLogsFilePath());
            _context.Serializer        = new NewtonsoftSerializer();
            _context.LocalizedMessages = CurrentWindow.Localization;
            _context.Initialize();

            _builder = new UpdaterBuilder(_context);

            if (PlayerPrefs.HasKey(LauncherNameKey))
            {
                _archiveNameText = PlayerPrefs.GetString(LauncherNameKey);
            }
        }
Example #2
0
        public override void Initialize()
        {
            base.Initialize();

            var progress = new Progress <BuilderProgress>();

            progress.ProgressChanged += BuilderOnProgress;

            _context                   = new AdminPatcherUpdateContext(CurrentWindow.AdminSettings, progress);
            _context.Logger            = new SimpleLogger(_context.FileSystem, CurrentWindow.AdminSettings.GetLogsFilePath(), CurrentWindow.AdminSettings.DebugMode);
            _context.Serializer        = new JsonSerializer();
            _context.LocalizedMessages = CurrentWindow.Localization;
            _context.Initialize();

            _builder = new UpdaterBuilder(_context);

            if (PlayerPrefs.HasKey(LauncherNameKey))
            {
                _archiveNameText = PlayerPrefs.GetString(LauncherNameKey);
            }
        }