Example #1
0
        public ResourcePackViewModel(
            GamePathService gamePathService,
            ResourcePackService resourcePackService,
            LanguageService languageService)
        {
            _gamePathService     = gamePathService;
            _resourcePackService = resourcePackService;
            _languageService     = languageService;

            EnabledPacks  = new BindableCollection <ResourcePack>();
            DisabledPacks = new BindableCollection <ResourcePack>();
        }
Example #2
0
        private async Task InitializeApplication()
        {
            NavigationService.Lock();

            // Sign in to database
            await AuthService.SignInAsync();

            // Ask user for permission
            await ResourcePackService.EnsureAccessToMinecraftDirectoryAsync();

            await MinecraftService.InitializeAsync();

            AppSettings.PrintSettings();

            NavigationService.Unlock();
        }