├── Cake Launcher ├── icon.ico ├── icon.png ├── store.png ├── mojang.png ├── background.png ├── Cake Launcher.ico ├── microsoft_launcher.dll ├── ic_fluent_home_24_filled.png ├── ic_fluent_image_24_filled.png ├── ic_fluent_news_24_filled.png ├── ic_fluent_person_24_filled.png ├── ic_fluent_rocket_24_filled.png ├── ic_fluent_server_24_filled.png ├── ic_fluent_chat_help_24_filled.png ├── ic_fluent_settings_24_filled.png ├── resources │ └── icons │ │ ├── MemoryFix-0.3.jar │ │ ├── ic_fluent_cube_24_filled.png │ │ ├── ic_fluent_home_24_filled.png │ │ ├── ic_fluent_news_24_filled.png │ │ ├── ic_fluent_image_24_filled.png │ │ ├── ic_fluent_person_24_filled.png │ │ ├── ic_fluent_rocket_24_filled.png │ │ ├── ic_fluent_server_24_filled.png │ │ ├── TickThreading-1.8.9.54-core.jar │ │ ├── ic_fluent_chat_help_24_filled.png │ │ ├── ic_fluent_settings_24_filled.png │ │ ├── ic_fluent_apps_add_in_24_filled.png │ │ ├── ic_fluent_developer_board_24_filled.png │ │ ├── ic_fluent_person_feedback_24_filled.png │ │ └── ic_fluent_store_microsoft_24_filled.png ├── ic_fluent_person_feedback_24_filled.png ├── ic_fluent_store_microsoft_24_filled.png ├── FodyWeavers.xml ├── Pages │ ├── DownloadCenter │ │ ├── ic_fluent_cube_24_filled.png │ │ ├── ic_fluent_apps_add_in_24_filled.png │ │ ├── ic_fluent_developer_board_24_filled.png │ │ ├── ic_fluent_store_microsoft_24_filled.png │ │ ├── ResourcesView.xaml.cs │ │ ├── DownloadCenterMainPage.xaml.cs │ │ ├── ResourcesView.xaml │ │ └── DownloadCenterMainPage.xaml │ ├── Settings │ │ ├── GameProfile.xaml │ │ ├── GameProfile.xaml.cs │ │ ├── SettingsList.xaml.cs │ │ ├── SettingsMainPage.xaml.cs │ │ ├── SettingsMainPage.xaml │ │ └── SettingsList.xaml │ ├── GameSettings.xaml.cs │ └── GameSettings.xaml ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── App.xaml.cs ├── LoginUI │ ├── Mojang.xaml.cs │ ├── Offline.xaml.cs │ ├── Microsoft.xaml │ ├── AuthlibInjectorAvatarChoose.xaml.cs │ ├── Microsoft.xaml.cs │ ├── Offline.xaml │ ├── Mojang.xaml │ ├── AuthlibInjectorAvatarChoose.xaml │ ├── AuthlibInjector.xaml.cs │ └── AuthlibInjector.xaml ├── App.xaml ├── App.config ├── packages.config ├── MainWindow.xaml ├── MainWindow.xaml.cs └── Cake Launcher.csproj ├── .gitmodules ├── azure-pipelines.yml ├── LICENSE ├── Cake Launcher.sln ├── .github └── workflows │ └── dotnet-desktop.yml ├── README.md ├── .gitattributes ├── README-en.md └── .gitignore /Cake Launcher/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/icon.ico -------------------------------------------------------------------------------- /Cake Launcher/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/icon.png -------------------------------------------------------------------------------- /Cake Launcher/store.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/store.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "KMCCC"] 2 | path = Cake Launcher/KMCCC 3 | url = https://github.com/MineStudio/KMCCC 4 | -------------------------------------------------------------------------------- /Cake Launcher/mojang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/mojang.png -------------------------------------------------------------------------------- /Cake Launcher/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/background.png -------------------------------------------------------------------------------- /Cake Launcher/Cake Launcher.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/Cake Launcher.ico -------------------------------------------------------------------------------- /Cake Launcher/microsoft_launcher.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/microsoft_launcher.dll -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_home_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_home_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_image_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_image_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_news_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_news_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_person_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_person_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_rocket_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_rocket_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_server_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_server_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_chat_help_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_chat_help_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_settings_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_settings_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/MemoryFix-0.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/MemoryFix-0.3.jar -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_person_feedback_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_person_feedback_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/ic_fluent_store_microsoft_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/ic_fluent_store_microsoft_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_cube_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_cube_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_home_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_home_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_news_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_news_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_image_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_image_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_person_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_person_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_rocket_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_rocket_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_server_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_server_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/Pages/DownloadCenter/ic_fluent_cube_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/Pages/DownloadCenter/ic_fluent_cube_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/TickThreading-1.8.9.54-core.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/TickThreading-1.8.9.54-core.jar -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_chat_help_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_chat_help_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_settings_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_settings_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_apps_add_in_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_apps_add_in_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/Pages/DownloadCenter/ic_fluent_apps_add_in_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/Pages/DownloadCenter/ic_fluent_apps_add_in_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_developer_board_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_developer_board_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_person_feedback_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_person_feedback_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/resources/icons/ic_fluent_store_microsoft_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/resources/icons/ic_fluent_store_microsoft_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/Pages/DownloadCenter/ic_fluent_developer_board_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/Pages/DownloadCenter/ic_fluent_developer_board_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/Pages/DownloadCenter/ic_fluent_store_microsoft_24_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Big-Cake-jpg/Cake-Launcher/HEAD/Cake Launcher/Pages/DownloadCenter/ic_fluent_store_microsoft_24_filled.png -------------------------------------------------------------------------------- /Cake Launcher/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Cake Launcher/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | using Cake_Launcher.LoginUI; 9 | 10 | namespace Cake_Launcher 11 | { 12 | /// 13 | /// App.xaml 的交互逻辑 14 | /// 15 | public partial class App : Application 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/Settings/GameProfile.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/Mojang.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.LoginUI 17 | { 18 | /// 19 | /// Mojang.xaml 的交互逻辑 20 | /// 21 | public partial class Mojang : Page 22 | { 23 | public Mojang() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/Offline.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.LoginUI 17 | { 18 | /// 19 | /// Offline.xaml 的交互逻辑 20 | /// 21 | public partial class Offline : Page 22 | { 23 | public Offline() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/GameSettings.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.Pages 17 | { 18 | /// 19 | /// GameSettings.xaml 的交互逻辑 20 | /// 21 | public partial class GameSettings : Page 22 | { 23 | public GameSettings() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/Settings/GameProfile.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.Pages.Settings 17 | { 18 | /// 19 | /// GameProfile.xaml 的交互逻辑 20 | /// 21 | public partial class GameProfile : Page 22 | { 23 | public GameProfile() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/Settings/SettingsList.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.Pages.Settings 17 | { 18 | /// 19 | /// SettingsList.xaml 的交互逻辑 20 | /// 21 | public partial class SettingsList : Page 22 | { 23 | public SettingsList() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/DownloadCenter/ResourcesView.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.Pages.DownloadCenter 17 | { 18 | /// 19 | /// ResourcesView.xaml 的交互逻辑 20 | /// 21 | public partial class ResourcesView : Page 22 | { 23 | public ResourcesView() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/Microsoft.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/AuthlibInjectorAvatarChoose.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.LoginUI 17 | { 18 | /// 19 | /// AuthlibInjectorAvatarChoose.xaml 的交互逻辑 20 | /// 21 | public partial class AuthlibInjectorAvatarChoose : Page 22 | { 23 | public AuthlibInjectorAvatarChoose() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /azure-pipelines.yml: -------------------------------------------------------------------------------- 1 | # .NET Desktop 2 | # Build and run tests for .NET Desktop or Windows classic desktop solutions. 3 | # Add steps that publish symbols, save build artifacts, and more: 4 | # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net 5 | 6 | trigger: 7 | - dev 8 | 9 | pool: 10 | vmImage: 'windows-latest' 11 | 12 | variables: 13 | solution: '**/*.sln' 14 | buildPlatform: 'Any CPU' 15 | buildConfiguration: 'Release' 16 | 17 | steps: 18 | - task: NuGetToolInstaller@1 19 | 20 | - task: NuGetCommand@2 21 | inputs: 22 | restoreSolution: '$(solution)' 23 | 24 | - task: VSBuild@1 25 | inputs: 26 | solution: '$(solution)' 27 | platform: '$(buildPlatform)' 28 | configuration: '$(buildConfiguration)' 29 | 30 | - task: VSTest@2 31 | inputs: 32 | platform: '$(buildPlatform)' 33 | configuration: '$(buildConfiguration)' 34 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/Microsoft.xaml.cs: -------------------------------------------------------------------------------- 1 | using microsoft_launcher; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | using System.Windows.Controls; 9 | using System.Windows.Data; 10 | using System.Windows.Documents; 11 | using System.Windows.Input; 12 | using System.Windows.Media; 13 | using System.Windows.Media.Imaging; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.LoginUI 17 | { 18 | /// 19 | /// Microsoft.xaml 的交互逻辑 20 | /// 21 | public partial class Microsoft 22 | { 23 | public Microsoft() 24 | { 25 | InitializeComponent(); 26 | MicrosoftAPIs microsoftAPIs = new MicrosoftAPIs(); 27 | microsoftAPIs.SuppressWininetBehavior(); 28 | browser.Source = microsoftAPIs.loginWebsite; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/Offline.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/Settings/SettingsMainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace Cake_Launcher.Pages.Settings 17 | { 18 | /// 19 | /// SettingsMainPage.xaml 的交互逻辑 20 | /// 21 | public partial class SettingsMainPage : Page 22 | { 23 | Pages.Settings.SettingsList settingslist = new Pages.Settings.SettingsList(); 24 | public SettingsMainPage() 25 | { 26 | InitializeComponent(); 27 | SettingsListContent.Content = new Frame 28 | { 29 | Content = settingslist 30 | }; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Cake Launcher/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Cake_Launcher.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/Mojang.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Big_Cake 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Cake Launcher/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Cake Launcher.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.0.31612.314 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake Launcher", "Cake Launcher\Cake Launcher.csproj", "{01E004E0-94E0-46EA-B88D-67FAF3576D23}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {01E004E0-94E0-46EA-B88D-67FAF3576D23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {01E004E0-94E0-46EA-B88D-67FAF3576D23}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {01E004E0-94E0-46EA-B88D-67FAF3576D23}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {01E004E0-94E0-46EA-B88D-67FAF3576D23}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {F6F431AD-A765-4FE0-AA06-C44307EDC6E1} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/AuthlibInjectorAvatarChoose.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Cake Launcher/LoginUI/AuthlibInjector.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using System.Windows; 3 | using System.Windows.Controls; 4 | 5 | namespace Cake_Launcher.LoginUI 6 | { 7 | /// 8 | /// Authlib_Injector.xaml 的交互逻辑 9 | /// 10 | public partial class Authlib_Injector : Page 11 | { 12 | public AuthlibInjectorAvatarChoose authlibInjectorAvatarChoose = new AuthlibInjectorAvatarChoose(); 13 | public SquareMinecraftLauncher.Minecraft.Skin skin = new SquareMinecraftLauncher.Minecraft.Skin(); 14 | public Authlib_Injector() 15 | { 16 | InitializeComponent(); 17 | } 18 | private async void ButtonClick_LoginToAPIRoot(object sender, RoutedEventArgs e) 19 | { 20 | LoginProgress.Visibility = Visibility.Visible; 21 | SquareMinecraftLauncher.Minecraft.Tools tools = new SquareMinecraftLauncher.Minecraft.Tools(); 22 | ///var t = Task.Run(() => 23 | ///{ 24 | ///return tools.GetAuthlib_Injector(APIRoot.Text, Username.Text, Password.Password); 25 | ///}); 26 | ///await t; 27 | skin = tools.GetAuthlib_Injector(APIRoot.Text, Username.Text, Password.Password); 28 | Content = new Frame() { Content = authlibInjectorAvatarChoose }; 29 | authlibInjectorAvatarChoose.ChooseAvatar.ItemsSource = skin.NameItem; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/Settings/SettingsMainPage.xaml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /.github/workflows/dotnet-desktop.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: [ dev ] 6 | pull_request: 7 | branches: [ dev ] 8 | 9 | jobs: 10 | 11 | build: 12 | 13 | strategy: 14 | matrix: 15 | configuration: [Debug, Release] 16 | 17 | runs-on: windows-latest # For a list of available runner types, refer to 18 | # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on 19 | 20 | env: 21 | Solution_Name: Cake Launcher.sln 22 | Test_Project_Path: Cake Launcher\Cake Launcher.csproj. 23 | 24 | steps: 25 | - name: Checkout 26 | uses: actions/checkout@v2 27 | with: 28 | fetch-depth: 0 29 | 30 | # Install the .NET Core workload 31 | - name: Install .NET Core 32 | uses: actions/setup-dotnet@v1 33 | with: 34 | dotnet-version: 6.0.x 35 | 36 | # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild 37 | - name: Setup MSBuild.exe 38 | uses: microsoft/setup-msbuild@v1.0.2 39 | 40 | # Install NuGet packages 41 | - name: Install packages 42 | run: dotnet restore 43 | 44 | # Execute all unit tests in the solution 45 | - name: Execute unit tests 46 | run: dotnet test 47 | 48 | # Restore the application to populate the obj folder with RuntimeIdentifiers 49 | - name: Restore the application 50 | run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration 51 | env: 52 | Configuration: ${{ matrix.configuration }} 53 | 54 | - name: Upload artifact 55 | uses: actions/upload-artifact@v3 56 | with: 57 | path: . 58 | -------------------------------------------------------------------------------- /Cake Launcher/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Cake Launcher/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // 有关程序集的一般信息由以下 8 | // 控制。更改这些特性值可修改 9 | // 与程序集关联的信息。 10 | [assembly: AssemblyTitle("Cake Launcher")] 11 | [assembly: AssemblyDescription("Cake Launcher - Minecraft 启动器")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("Cake Launcher Development Team")] 14 | [assembly: AssemblyProduct("Cake Launcher PREVIEW")] 15 | [assembly: AssemblyCopyright("Copyright © 2022 Cake Launcher Development Team")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // 将 ComVisible 设置为 false 会使此程序集中的类型 20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 21 | //请将此类型的 ComVisible 特性设置为 true。 22 | [assembly: ComVisible(false)] 23 | 24 | //若要开始生成可本地化的应用程序,请设置 25 | //.csproj 文件中的 CultureYouAreCodingWith 26 | //例如,如果您在源文件中使用的是美国英语, 27 | //使用的是美国英语,请将 设置为 en-US。 然后取消 28 | //对以下 NeutralResourceLanguage 特性的注释。 更新 29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置 36 | //(未在页面中找到资源时使用, 37 | //或应用程序资源字典中找到时使用) 38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置 39 | //(未在页面中找到资源时使用, 40 | //、应用程序或任何主题专用资源字典中找到时使用) 41 | )] 42 | 43 | 44 | // 程序集的版本信息由下列四个值组成: 45 | // 46 | // 主版本 47 | // 次版本 48 | // 生成号 49 | // 修订号 50 | // 51 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 52 | //通过使用 "*",如下所示: 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("0.0.2.0")] 55 | [assembly: AssemblyFileVersion("0.0.2.0")] 56 | -------------------------------------------------------------------------------- /Cake Launcher/Pages/Settings/SettingsList.xaml: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | 16 | 17 | 18 | 19 | 20 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /Cake Launcher/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using Cake_Launcher.LoginUI; 2 | using Cake_Launcher.Pages; 3 | using MahApps.Metro.Controls; 4 | using Microsoft.Win32; 5 | using Newtonsoft.Json; 6 | using System; 7 | using System.ComponentModel; 8 | using System.IO; 9 | using System.Net; 10 | using System.Threading.Tasks; 11 | using System.Windows; 12 | using System.Windows.Controls; 13 | 14 | namespace Cake_Launcher 15 | { 16 | /// 17 | /// MainWindow.xaml 的交互逻辑 18 | /// 19 | public partial class MainWindow 20 | { 21 | //public static MainWindow win; 22 | 23 | //初始化启动器 24 | 25 | LoginUI.Offline Offline = new LoginUI.Offline(); 26 | LoginUI.Microsoft Microsoft = new LoginUI.Microsoft(); 27 | LoginUI.Mojang Mojang = new LoginUI.Mojang(); 28 | LoginUI.Authlib_Injector AuthlibInjector = new LoginUI.Authlib_Injector(); 29 | Pages.GameSettings gamesettings = new Pages.GameSettings(); 30 | Pages.Settings.SettingsMainPage settingsmain = new Pages.Settings.SettingsMainPage(); 31 | Pages.DownloadCenter.DownloadCenterMainPage DownloadCenterMainPage = new Pages.DownloadCenter.DownloadCenterMainPage(); 32 | public int launchMode = 1; 33 | microsoft_launcher.MicrosoftAPIs microsoftAPIs = new microsoft_launcher.MicrosoftAPIs(); 34 | SquareMinecraftLauncher.Minecraft.Game game = new SquareMinecraftLauncher.Minecraft.Game(); 35 | SquareMinecraftLauncher.Minecraft.Tools tools = new SquareMinecraftLauncher.Minecraft.Tools(); 36 | SquareMinecraftLauncher.MinecraftDownload minecraftDownload = new SquareMinecraftLauncher.MinecraftDownload(); 37 | Setting setting = new Setting(); 38 | string SettingPath = @"cakelauncher.json"; 39 | RegisterSetting registerSetting = new RegisterSetting(); 40 | //Frame PageFrame = new Frame() { Content = new MainWindow()}; 41 | //Frame SettingsFrame = new Frame() { Content = new Pages.Settings.SettingsMainPage()}; 42 | //Frame DownloadFrame = new Frame() { Content = new Pages.DownloadCenter.DownloadCenterMainPage()}; 43 | //public enum WindowsID 44 | //{ 45 | // PageFrame, 46 | // SettingsFrame, 47 | // DownloadFrame 48 | //} 49 | 50 | //设置保存(json) 51 | public class Setting 52 | { 53 | public string RAM = "1024"; 54 | } 55 | public class RegisterSetting 56 | { 57 | public string name = "Big_Cake"; 58 | } 59 | 60 | public void LauncherInitialization() 61 | { 62 | if (!File.Exists(SettingPath)) 63 | { 64 | File.WriteAllText(SettingPath, JsonConvert.SerializeObject(setting)); 65 | } 66 | else 67 | { 68 | setting = JsonConvert.DeserializeObject(File.ReadAllText(SettingPath)); 69 | } 70 | //设置保存(注册表) 71 | bool isFirst = true; 72 | using (RegistryKey Key1 = Registry.CurrentUser.OpenSubKey("SOFTWARE")) 73 | { 74 | foreach (var i in Key1.GetSubKeyNames()) 75 | { 76 | if (i == "Cake Launcher") 77 | { 78 | isFirst = false; 79 | } 80 | } 81 | } 82 | if (isFirst) 83 | { 84 | using (RegistryKey key = Registry.CurrentUser) 85 | { 86 | using (RegistryKey software = key.CreateSubKey("Software\\Cake Launcher")) 87 | { 88 | software.SetValue("name", registerSetting.name); 89 | } 90 | } 91 | } 92 | else 93 | { 94 | using (RegistryKey key = Registry.CurrentUser) 95 | { 96 | using (RegistryKey software = key.CreateSubKey("Software\\Cake Launcher")) 97 | { 98 | registerSetting.name = software.GetValue("name").ToString(); 99 | } 100 | } 101 | } 102 | } 103 | 104 | //设置默认的 Java 与版本选择 105 | public MainWindow() 106 | { 107 | InitializeComponent(); 108 | //win = this; 109 | //WindowChange(WindowsID.PageFrame); 110 | LauncherInitialization(); 111 | ServicePointManager.DefaultConnectionLimit = 512; 112 | var versions = tools.GetAllTheExistingVersion(); 113 | gamesettings.versionCombo.ItemsSource = versions; 114 | gamesettings.JavaPathCombo.ItemsSource = tools.GetJavaPath(); 115 | if (gamesettings.versionCombo.Items.Count != 0) 116 | gamesettings.versionCombo.SelectedItem = gamesettings.versionCombo.Items[0]; 117 | if (gamesettings.JavaPathCombo.Items.Count != 0) 118 | gamesettings.JavaPathCombo.SelectedItem = gamesettings.JavaPathCombo.Items[0]; 119 | gamesettings.MemoryTextBox.Text = setting.RAM; 120 | } 121 | #region 122 | //public void CompleteFile() 123 | //{ 124 | // try 125 | // { 126 | // tools.DownloadSourceInitialization(DownloadSource.bmclapiSource); 127 | // var v = tools.GetMissingFile(versionCombo.SelectedValue.ToString()); 128 | // Gac.DownLoadFile downLoadFile = new Gac.DownLoadFile(); 129 | // foreach (var i in v) 130 | // { 131 | // downLoadFile.AddDown(i.Url, i.path); 132 | // } 133 | // downLoadFile.StartDown(0); 134 | // } 135 | // catch (Exception e) 136 | // { 137 | // System.Windows.MessageBox.Show(e.ToString(), "补全文件失败"); 138 | // } 139 | //} 140 | #endregion 141 | 142 | //启动游戏 143 | public async void GameStart() 144 | { 145 | try 146 | { 147 | if (startbutton.Content.ToString() == "确认启动吗?") 148 | { 149 | startbutton.Content = "Stage 1 - 补全文件"; 150 | //CompleteFile(); 151 | if (gamesettings.versionCombo.Text != string.Empty && 152 | gamesettings.JavaPathCombo.Text != string.Empty && 153 | (Offline.UserID.Text != string.Empty || Mojang.MojangEmail.Text != string.Empty && Mojang.MojangPassword.Password != string.Empty && 154 | gamesettings.MemoryTextBox.Text != string.Empty)) 155 | { 156 | switch (launchMode) 157 | { 158 | case 1: 159 | startbutton.Content = "Stage 2 - 启动游戏"; 160 | await game.StartGame(gamesettings.versionCombo.Text, gamesettings.JavaPathCombo.SelectedValue.ToString(), Convert.ToInt32(gamesettings.MemoryTextBox.Text), Offline.UserID.Text); 161 | break; 162 | case 2: 163 | startbutton.Content = "Stage 2 - Mojang 正版登录"; 164 | await game.StartGame(gamesettings.versionCombo.Text, gamesettings.JavaPathCombo.SelectedValue.ToString(), Convert.ToInt32(gamesettings.MemoryTextBox.Text), Mojang.MojangEmail.Text, Mojang.MojangPassword.Password); 165 | startbutton.Content = "Stage 3 - 启动游戏"; 166 | break; 167 | case 3: 168 | startbutton.Content = "Stage 2 - 微软正版登录"; 169 | microsoft_launcher.MicrosoftAPIs microsoftAPIs = new microsoft_launcher.MicrosoftAPIs(); 170 | var v = Microsoft.browser.Source.ToString().Replace(microsoftAPIs.cutUri, string.Empty); 171 | var t = Task.Run(() => 172 | { 173 | return microsoftAPIs.GetAccessTokenAsync(v, false).Result; 174 | }); 175 | await t; 176 | var v1 = microsoftAPIs.GetAllThings(t.Result.access_token, false); 177 | startbutton.Content = "Stage 3 - 启动游戏"; 178 | await game.StartGame(gamesettings.versionCombo.Text, gamesettings.JavaPathCombo.SelectedValue.ToString(), Convert.ToInt32(gamesettings.MemoryTextBox.Text), v1.name, v1.uuid, v1.mcToken, string.Empty, string.Empty); 179 | break; 180 | case 4: 181 | startbutton.Content = "Stage 2 - 登录"; 182 | await game.StartGame(gamesettings.versionCombo.Text, gamesettings.JavaPathCombo.SelectedValue.ToString(), Convert.ToInt32(gamesettings.MemoryTextBox.Text), AuthlibInjector.authlibInjectorAvatarChoose.ChooseAvatar.Text, AuthlibInjector.authlibInjectorAvatarChoose.ChooseAvatar.SelectedValue.ToString(), AuthlibInjector.skin.accessToken, string.Empty, string.Empty); 183 | startbutton.Content = "Stage 3 - 启动游戏"; 184 | break; 185 | } 186 | } 187 | else 188 | { 189 | System.Windows.MessageBox.Show("信息未填完整", "错误"); 190 | } 191 | } 192 | } 193 | catch (Exception e) 194 | { 195 | System.Windows.MessageBox.Show("启动失败" + e.Message, "错误"); 196 | } 197 | finally 198 | { 199 | startbutton.Content = "确认启动吗?"; 200 | } 201 | } 202 | 203 | //应用内磁贴 204 | private void ButtonClick_StartGame(object sender, RoutedEventArgs e) 205 | { 206 | GameStart(); 207 | } 208 | private void TileClick_OpenHelp(object sender, RoutedEventArgs e) 209 | { 210 | 211 | } 212 | /// 微软正版 213 | private void TileClick_Microsoft(object sender, RoutedEventArgs e) 214 | { 215 | LoginContent.Content = new Frame 216 | { 217 | Content = Microsoft 218 | }; 219 | launchMode = 3; 220 | } 221 | /// 离线登录 222 | private void TileClick_Offline(object sender, RoutedEventArgs e) 223 | { 224 | LoginContent.Content = new Frame 225 | { 226 | Content = Offline 227 | }; 228 | launchMode = 1; 229 | } 230 | /// Authlib-Injector 外置登录 231 | private void TileClick_AuthlibInjector(object sender, RoutedEventArgs e) 232 | { 233 | LoginContent.Content = new Frame 234 | { 235 | Content = AuthlibInjector 236 | }; 237 | launchMode = 4; 238 | } 239 | /// Mojang 正版 240 | private void TileClick_Mojang(object sender, RoutedEventArgs e) 241 | { 242 | LoginContent.Content = new Frame 243 | { 244 | Content = Mojang 245 | }; 246 | launchMode = 2; 247 | } 248 | 249 | //设置保存 250 | private void MemoryTextBox_TextChanged(object sender, TextChangedEventArgs e) 251 | { 252 | setting.RAM = gamesettings.MemoryTextBox.Text; 253 | } 254 | private void Window_Closing(object sender, CancelEventArgs e) 255 | { 256 | File.WriteAllText(SettingPath, JsonConvert.SerializeObject(setting)); 257 | } 258 | 259 | //杂七杂八的 260 | private void TileClick_NeverGonnaGiveYouUp(object sender, EventArgs e) 261 | { 262 | System.Diagnostics.Process.Start("https://www.bilibili.com/video/BV1va411w7aM/"); 263 | } 264 | private void TileClick_OpenGameSettings(object sender, RoutedEventArgs e) 265 | { 266 | //MainWindow.win.WindowChange(MainWindow.WindowsID.SettingsFrame); 267 | PageContent.Content = new Frame 268 | { 269 | Content = gamesettings 270 | }; 271 | } 272 | private void ClosePages(object sender, RoutedEventArgs e) 273 | { 274 | PageContent.Content = new Frame 275 | { 276 | Content = new Frame() 277 | }; 278 | } 279 | private void FeedBack(object sender, RoutedEventArgs e) 280 | { 281 | System.Diagnostics.Process.Start("https://github.com/Big-Cake-jpg/Cake-Launcher/issues/new"); 282 | } 283 | private void TileClick_OpenSettings(object sender, RoutedEventArgs e) 284 | { 285 | //Page Pages.Settings.SettingsMainPage = new SMP(); 286 | PageContent.Content = new Frame 287 | { 288 | Content = settingsmain 289 | }; 290 | } 291 | private void TileClick_CloseLoginUI(object sender, RoutedEventArgs e) 292 | { 293 | LoginContent.Content = new Frame 294 | { 295 | Content = new Frame() 296 | }; 297 | } 298 | private void TileClick_OpenDownloadCenter(object sender, RoutedEventArgs e) 299 | { 300 | PageContent.Content = new Frame 301 | { 302 | Content = DownloadCenterMainPage 303 | }; 304 | } 305 | //public void WindowChange(WindowsID, winid) 306 | //{ 307 | // switch (winid) 308 | // { 309 | // case WindowsID.PageFrame: 310 | // PageContent.Content = PageFrame; 311 | // break 312 | // case WindowsID.SettingsFrame: 313 | // PageContent.Content = SettingsFrame; 314 | // break 315 | // //case WindowsID.DownloadFrame: 316 | // // PageContent.Content = DownloadCenterMainPage; 317 | // // break 318 | // } 319 | //} 320 | } 321 | } 322 | 323 | -------------------------------------------------------------------------------- /Cake Launcher/Cake Launcher.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Debug 7 | AnyCPU 8 | {01E004E0-94E0-46EA-B88D-67FAF3576D23} 9 | WinExe 10 | Cake_Launcher 11 | Cake Launcher 12 | v4.7.2 13 | 512 14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 15 | 4 16 | true 17 | true 18 | false 19 | 20 | 21 | 22 | D:\Cake-Launcher-Release\ 23 | false 24 | Disk 25 | false 26 | Foreground 27 | 7 28 | Days 29 | false 30 | false 31 | true 32 | https://launcher.cakemc.top/releases/ 33 | Cake Launcher 34 | Cake Launcher Development Team 35 | publish.htm 36 | true 37 | 0 38 | 0.0.2.%2a 39 | false 40 | true 41 | true 42 | 43 | 44 | x86 45 | true 46 | full 47 | false 48 | bin\Debug\ 49 | DEBUG;TRACE 50 | prompt 51 | 3 52 | true 53 | false 54 | 55 | 56 | AnyCPU 57 | pdbonly 58 | true 59 | bin\Release\ 60 | TRACE 61 | prompt 62 | 4 63 | 64 | 65 | 17FF61D202AC58B703D04BA61345E76C384C0892 66 | 67 | 68 | Cake Launcher_TemporaryKey.pfx 69 | 70 | 71 | true 72 | 73 | 74 | false 75 | 76 | 77 | icon.ico 78 | 79 | 80 | false 81 | 82 | 83 | 84 | ..\packages\ControlzEx.5.0.1\lib\net462\ControlzEx.dll 85 | 86 | 87 | ..\packages\Costura.Fody.5.8.0-alpha0098\lib\netstandard1.0\Costura.dll 88 | 89 | 90 | ..\packages\Downloader.2.3.5\lib\net452\Downloader.dll 91 | 92 | 93 | ..\packages\SharpZipLib.1.3.3\lib\net45\ICSharpCode.SharpZipLib.dll 94 | 95 | 96 | ..\packages\MahApps.Metro.2.4.9\lib\net47\MahApps.Metro.dll 97 | 98 | 99 | ..\packages\MahApps.Metro.IconPacks.4.11.0\lib\net47\MahApps.Metro.IconPacks.dll 100 | True 101 | 102 | 103 | ..\packages\MahApps.Metro.IconPacks.BootstrapIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.BootstrapIcons.dll 104 | True 105 | 106 | 107 | ..\packages\MahApps.Metro.IconPacks.BoxIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.BoxIcons.dll 108 | True 109 | 110 | 111 | ..\packages\MahApps.Metro.IconPacks.Codicons.4.11.0\lib\net47\MahApps.Metro.IconPacks.Codicons.dll 112 | True 113 | 114 | 115 | ..\packages\MahApps.Metro.IconPacks.4.11.0\lib\net47\MahApps.Metro.IconPacks.Coolicons.dll 116 | True 117 | 118 | 119 | ..\packages\MahApps.Metro.IconPacks.Zondicons.4.11.0\lib\net47\MahApps.Metro.IconPacks.Core.dll 120 | True 121 | 122 | 123 | ..\packages\MahApps.Metro.IconPacks.Entypo.4.11.0\lib\net47\MahApps.Metro.IconPacks.Entypo.dll 124 | True 125 | 126 | 127 | ..\packages\MahApps.Metro.IconPacks.EvaIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.EvaIcons.dll 128 | True 129 | 130 | 131 | ..\packages\MahApps.Metro.IconPacks.FeatherIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.FeatherIcons.dll 132 | True 133 | 134 | 135 | ..\packages\MahApps.Metro.IconPacks.FileIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.FileIcons.dll 136 | True 137 | 138 | 139 | ..\packages\MahApps.Metro.IconPacks.Fontaudio.4.11.0\lib\net47\MahApps.Metro.IconPacks.Fontaudio.dll 140 | True 141 | 142 | 143 | ..\packages\MahApps.Metro.IconPacks.FontAwesome.4.11.0\lib\net47\MahApps.Metro.IconPacks.FontAwesome.dll 144 | True 145 | 146 | 147 | ..\packages\MahApps.Metro.IconPacks.4.11.0\lib\net47\MahApps.Metro.IconPacks.Fontisto.dll 148 | True 149 | 150 | 151 | ..\packages\MahApps.Metro.IconPacks.ForkAwesome.4.11.0\lib\net47\MahApps.Metro.IconPacks.ForkAwesome.dll 152 | True 153 | 154 | 155 | ..\packages\MahApps.Metro.IconPacks.Ionicons.4.11.0\lib\net47\MahApps.Metro.IconPacks.Ionicons.dll 156 | True 157 | 158 | 159 | ..\packages\MahApps.Metro.IconPacks.JamIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.JamIcons.dll 160 | True 161 | 162 | 163 | ..\packages\MahApps.Metro.IconPacks.Material.4.11.0\lib\net47\MahApps.Metro.IconPacks.Material.dll 164 | True 165 | 166 | 167 | ..\packages\MahApps.Metro.IconPacks.MaterialDesign.4.11.0\lib\net47\MahApps.Metro.IconPacks.MaterialDesign.dll 168 | True 169 | 170 | 171 | ..\packages\MahApps.Metro.IconPacks.MaterialLight.4.11.0\lib\net47\MahApps.Metro.IconPacks.MaterialLight.dll 172 | True 173 | 174 | 175 | ..\packages\MahApps.Metro.IconPacks.Microns.4.11.0\lib\net47\MahApps.Metro.IconPacks.Microns.dll 176 | True 177 | 178 | 179 | ..\packages\MahApps.Metro.IconPacks.Modern.4.11.0\lib\net47\MahApps.Metro.IconPacks.Modern.dll 180 | True 181 | 182 | 183 | ..\packages\MahApps.Metro.IconPacks.Octicons.4.11.0\lib\net47\MahApps.Metro.IconPacks.Octicons.dll 184 | True 185 | 186 | 187 | ..\packages\MahApps.Metro.IconPacks.PicolIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.PicolIcons.dll 188 | True 189 | 190 | 191 | ..\packages\MahApps.Metro.IconPacks.PixelartIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.PixelartIcons.dll 192 | True 193 | 194 | 195 | ..\packages\MahApps.Metro.IconPacks.RadixIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.RadixIcons.dll 196 | True 197 | 198 | 199 | ..\packages\MahApps.Metro.IconPacks.RemixIcon.4.11.0\lib\net47\MahApps.Metro.IconPacks.RemixIcon.dll 200 | True 201 | 202 | 203 | ..\packages\MahApps.Metro.IconPacks.RPGAwesome.4.11.0\lib\net47\MahApps.Metro.IconPacks.RPGAwesome.dll 204 | True 205 | 206 | 207 | ..\packages\MahApps.Metro.IconPacks.SimpleIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.SimpleIcons.dll 208 | True 209 | 210 | 211 | ..\packages\MahApps.Metro.IconPacks.Typicons.4.11.0\lib\net47\MahApps.Metro.IconPacks.Typicons.dll 212 | True 213 | 214 | 215 | ..\packages\MahApps.Metro.IconPacks.Unicons.4.11.0\lib\net47\MahApps.Metro.IconPacks.Unicons.dll 216 | True 217 | 218 | 219 | ..\packages\MahApps.Metro.IconPacks.VaadinIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.VaadinIcons.dll 220 | True 221 | 222 | 223 | ..\packages\MahApps.Metro.IconPacks.WeatherIcons.4.11.0\lib\net47\MahApps.Metro.IconPacks.WeatherIcons.dll 224 | True 225 | 226 | 227 | ..\packages\MahApps.Metro.IconPacks.Zondicons.4.11.0\lib\net47\MahApps.Metro.IconPacks.Zondicons.dll 228 | True 229 | 230 | 231 | ..\packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll 232 | True 233 | True 234 | 235 | 236 | ..\packages\Microsoft.Xaml.Behaviors.Wpf.1.1.39\lib\net45\Microsoft.Xaml.Behaviors.dll 237 | 238 | 239 | .\microsoft_launcher.dll 240 | 241 | 242 | ..\packages\ModuleLauncher.Re.2.6.0\lib\net472\ModuleLauncher.Re.dll 243 | 244 | 245 | ..\packages\Newtonsoft.Json.13.0.2-beta1\lib\net45\Newtonsoft.Json.dll 246 | 247 | 248 | ..\packages\SquareMinecraftLauncher.Core.3.9.1\lib\net452\SquareMinecraftLauncherCore.dll 249 | 250 | 251 | 252 | ..\packages\System.AppContext.4.3.0\lib\net463\System.AppContext.dll 253 | True 254 | True 255 | 256 | 257 | ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll 258 | True 259 | 260 | 261 | 262 | 263 | 264 | ..\packages\System.Console.4.3.1\lib\net46\System.Console.dll 265 | True 266 | True 267 | 268 | 269 | 270 | ..\packages\System.Diagnostics.DiagnosticSource.7.0.0-preview.4.22229.4\lib\net462\System.Diagnostics.DiagnosticSource.dll 271 | 272 | 273 | ..\packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll 274 | True 275 | True 276 | 277 | 278 | ..\packages\System.Globalization.Calendars.4.3.0\lib\net46\System.Globalization.Calendars.dll 279 | True 280 | True 281 | 282 | 283 | ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll 284 | True 285 | True 286 | 287 | 288 | ..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll 289 | True 290 | True 291 | 292 | 293 | 294 | ..\packages\System.IO.Compression.ZipFile.4.3.0\lib\net46\System.IO.Compression.ZipFile.dll 295 | True 296 | True 297 | 298 | 299 | ..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll 300 | True 301 | True 302 | 303 | 304 | ..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll 305 | True 306 | True 307 | 308 | 309 | ..\packages\System.Linq.4.3.0\lib\net463\System.Linq.dll 310 | True 311 | True 312 | 313 | 314 | ..\packages\System.Linq.Expressions.4.3.0\lib\net463\System.Linq.Expressions.dll 315 | True 316 | True 317 | 318 | 319 | ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll 320 | 321 | 322 | ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll 323 | True 324 | True 325 | 326 | 327 | ..\packages\System.Net.Sockets.4.3.0\lib\net46\System.Net.Sockets.dll 328 | True 329 | True 330 | 331 | 332 | 333 | ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll 334 | True 335 | 336 | 337 | ..\packages\System.Reflection.4.3.0\lib\net462\System.Reflection.dll 338 | True 339 | True 340 | 341 | 342 | ..\packages\System.Runtime.4.3.1\lib\net462\System.Runtime.dll 343 | True 344 | True 345 | 346 | 347 | ..\packages\System.Runtime.CompilerServices.Unsafe.7.0.0-preview.2.22152.2\lib\net462\System.Runtime.CompilerServices.Unsafe.dll 348 | 349 | 350 | ..\packages\System.Runtime.Extensions.4.3.1\lib\net462\System.Runtime.Extensions.dll 351 | True 352 | True 353 | 354 | 355 | ..\packages\System.Runtime.InteropServices.4.3.0\lib\net463\System.Runtime.InteropServices.dll 356 | True 357 | True 358 | 359 | 360 | ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll 361 | True 362 | True 363 | 364 | 365 | ..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll 366 | True 367 | True 368 | 369 | 370 | ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll 371 | True 372 | True 373 | 374 | 375 | ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll 376 | True 377 | True 378 | 379 | 380 | ..\packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll 381 | True 382 | True 383 | 384 | 385 | ..\packages\System.Text.RegularExpressions.4.3.1\lib\net463\System.Text.RegularExpressions.dll 386 | True 387 | True 388 | 389 | 390 | 391 | 392 | 393 | 394 | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Microsoft.CSharp.dll 395 | 396 | 397 | 398 | 399 | 400 | 4.0 401 | 402 | 403 | ..\packages\System.Xml.ReaderWriter.4.3.1\lib\net46\System.Xml.ReaderWriter.dll 404 | True 405 | True 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | MSBuild:Compile 414 | Designer 415 | 416 | 417 | AuthlibInjector.xaml 418 | 419 | 420 | AuthlibInjectorAvatarChoose.xaml 421 | 422 | 423 | Microsoft.xaml 424 | 425 | 426 | Mojang.xaml 427 | 428 | 429 | Offline.xaml 430 | 431 | 432 | Designer 433 | MSBuild:Compile 434 | 435 | 436 | Designer 437 | MSBuild:Compile 438 | 439 | 440 | MSBuild:Compile 441 | Designer 442 | 443 | 444 | Designer 445 | MSBuild:Compile 446 | 447 | 448 | Designer 449 | MSBuild:Compile 450 | 451 | 452 | MSBuild:Compile 453 | Designer 454 | 455 | 456 | App.xaml 457 | Code 458 | 459 | 460 | MainWindow.xaml 461 | Code 462 | 463 | 464 | Designer 465 | MSBuild:Compile 466 | 467 | 468 | Designer 469 | MSBuild:Compile 470 | 471 | 472 | Designer 473 | MSBuild:Compile 474 | 475 | 476 | Designer 477 | MSBuild:Compile 478 | 479 | 480 | Designer 481 | MSBuild:Compile 482 | 483 | 484 | Designer 485 | MSBuild:Compile 486 | 487 | 488 | 489 | 490 | DownloadCenterMainPage.xaml 491 | 492 | 493 | ResourcesView.xaml 494 | 495 | 496 | GameSettings.xaml 497 | 498 | 499 | GameProfile.xaml 500 | 501 | 502 | SettingsList.xaml 503 | 504 | 505 | SettingsMainPage.xaml 506 | 507 | 508 | Code 509 | 510 | 511 | True 512 | True 513 | Resources.resx 514 | 515 | 516 | True 517 | Settings.settings 518 | True 519 | 520 | 521 | ResXFileCodeGenerator 522 | Resources.Designer.cs 523 | 524 | 525 | 526 | SettingsSingleFileGenerator 527 | Settings.Designer.cs 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | False 536 | Microsoft .NET Framework 4.7.2 %28x86 和 x64%29 537 | true 538 | 539 | 540 | False 541 | .NET Framework 3.5 SP1 542 | false 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | --------------------------------------------------------------------------------