├── .gitattributes ├── .gitignore ├── App.xaml ├── App.xaml.cs ├── Assets ├── ACTUALL ICON.ico ├── Banner.png ├── PFP.png ├── ShieldExclamationMark.png ├── SplashScreen.scale-200.png ├── Square150x150Logo.scale-200.png ├── Square44x44Logo.scale-200.png ├── Square44x44Logo.targetsize-24_altform-unplated.png ├── StoreLogo.png ├── Wide310x150Logo.scale-200.png ├── backend.png ├── charity-removebg-preview.png ├── discord.png ├── playerstats.png ├── tiltedlogo.png └── warning.png ├── Config.cs ├── Core ├── API.cs ├── DiscordRPC │ └── ExitRPC.cs ├── Launcher │ ├── AsyncStreamReader.cs │ ├── CheckSuspendedProcess.cs │ ├── CrashHandler.cs │ └── Launcher.cs ├── Loops │ └── AccountCheck.cs ├── Mods │ ├── Anticheat.cs │ ├── DownloadFile.cs │ └── WhitelistedProcesses.cs ├── MongDB │ └── MongoDB.cs ├── Settings.cs ├── Updates │ └── CheckForUpdates.cs └── def │ └── Definitions.cs ├── Dialogs ├── DownloadDialog.xaml └── DownloadDialog.xaml.cs ├── ExitLauncher.csproj ├── ExitLauncher.sln ├── Globals.cs ├── Helpers ├── PathHelper.cs └── StorageSizesConverter.cs ├── Interop └── MessageBox.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── Package.appxmanifest ├── Pages ├── DownloadsPage.xaml ├── DownloadsPage.xaml.cs ├── HomePage.xaml ├── HomePage.xaml.cs ├── ItemShopPage.xaml ├── ItemShopPage.xaml.cs ├── LoginPage.xaml ├── LoginPage.xaml.cs ├── MainShellPage.xaml ├── MainShellPage.xaml.cs ├── PlayPage.xaml ├── PlayPage.xaml.cs ├── ServerStatusPage.xaml ├── ServerStatusPage.xaml.cs ├── SettingsPage.xaml └── SettingsPage.xaml.cs ├── Properties └── launchSettings.json ├── README.md ├── Services ├── DialogService.cs ├── NavigationService.cs └── ThemeService.cs └── app.manifest /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /App.xaml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /App.xaml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml; 2 | using Microsoft.UI.Xaml.Controls; 3 | using Microsoft.UI.Xaml.Controls.Primitives; 4 | using Microsoft.UI.Xaml.Data; 5 | using Microsoft.UI.Xaml.Input; 6 | using Microsoft.UI.Xaml.Media; 7 | using Microsoft.UI.Xaml.Navigation; 8 | using Microsoft.UI.Xaml.Shapes; 9 | using FortniteLauncher.Core; 10 | using FortniteLauncher.Interop; 11 | using FortniteLauncher.Services; 12 | using System; 13 | using System.Collections.Generic; 14 | using System.IO; 15 | using System.Linq; 16 | using System.Runtime.InteropServices.WindowsRuntime; 17 | using System.Threading; 18 | using Windows.ApplicationModel; 19 | using Windows.ApplicationModel.Activation; 20 | using Windows.Foundation; 21 | using Windows.Foundation.Collections; 22 | 23 | // To learn more about WinUI, the WinUI project structure, 24 | // and more about our project templates, see: http://aka.ms/winui-project-info. 25 | 26 | namespace FortniteLauncher 27 | { 28 | /// 29 | /// Provides application-specific behavior to supplement the default Application class. 30 | /// 31 | public partial class App : Application 32 | { 33 | /// 34 | /// Initializes the singleton application object. This is the first line of authored code 35 | /// executed, and as such is the logical equivalent of main() or WinMain(). 36 | /// 37 | public App() 38 | { 39 | this.InitializeComponent(); 40 | ExitRPC.Start(); 41 | bool createdNew; 42 | Mutex mutex = new Mutex(true, "ExitLauncher", out createdNew); 43 | 44 | if (createdNew) 45 | { 46 | mutex.ReleaseMutex(); 47 | } 48 | else 49 | { 50 | MessageBox.Show("Exit Launcher is already running. Please close it before opening a new instance.", "Already Running"); 51 | Environment.Exit(1); 52 | } 53 | } 54 | 55 | /// 56 | /// Invoked when the application is launched. 57 | /// 58 | /// Details about the launch request and process. 59 | protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) 60 | { 61 | m_window = new MainWindow(); 62 | m_window.Activate(); 63 | 64 | Globals.m_window = m_window; 65 | 66 | Settings.LoadSettings(); 67 | 68 | ThemeService.ChangeTheme(ElementTheme.Dark);//force the dark theme 69 | if (Globals.m_config.IsSoundEnabled) 70 | { 71 | ElementSoundPlayer.State = ElementSoundPlayerState.On; 72 | } 73 | } 74 | 75 | private Window m_window; 76 | 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /Assets/ACTUALL ICON.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/ACTUALL ICON.ico -------------------------------------------------------------------------------- /Assets/Banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/Banner.png -------------------------------------------------------------------------------- /Assets/PFP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/PFP.png -------------------------------------------------------------------------------- /Assets/ShieldExclamationMark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/ShieldExclamationMark.png -------------------------------------------------------------------------------- /Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/StoreLogo.png -------------------------------------------------------------------------------- /Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Assets/backend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/backend.png -------------------------------------------------------------------------------- /Assets/charity-removebg-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/charity-removebg-preview.png -------------------------------------------------------------------------------- /Assets/discord.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/discord.png -------------------------------------------------------------------------------- /Assets/playerstats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/playerstats.png -------------------------------------------------------------------------------- /Assets/tiltedlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/tiltedlogo.png -------------------------------------------------------------------------------- /Assets/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExitFN/Exit-Launcher/ebb5da3f01f9a8b668cc72fc59542137677ded46/Assets/warning.png -------------------------------------------------------------------------------- /Config.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace FortniteLauncher 9 | { 10 | public class Config 11 | { 12 | public bool IsSoundEnabled; 13 | 14 | public string FortnitePath; 15 | 16 | public string Username { get; set; } 17 | public string Email { get; set; } 18 | public string Password { get; set; } 19 | 20 | 21 | ///defaults 22 | ///Dark Theme 23 | ///Sound Disabled 24 | ///EOR Enabled 25 | //////Close On launch Disabled 26 | /// 27 | ///Username, email and password are empty and will be set at runtime 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Core/DiscordRPC/ExitRPC.cs: -------------------------------------------------------------------------------- 1 | using Amazon.Runtime.Internal.Endpoints.StandardLibrary; 2 | using DiscordRPC; 3 | using MongoDB.Bson.Serialization.Serializers; 4 | using System; 5 | using System.Reflection.Emit; 6 | using System.Threading; 7 | using System.Threading.Tasks; 8 | 9 | public class ExitRPC 10 | { 11 | private static DiscordRpcClient client; 12 | 13 | public static async void Start() 14 | { 15 | if (client == null) 16 | { 17 | client = new DiscordRpcClient("put your discord bot id here so discord rpc works but this config is for my client so change it"); 18 | 19 | client.Initialize(); 20 | } 21 | 22 | if (client.IsInitialized) 23 | { 24 | if (Definitions.DiscordPRC == true) 25 | { 26 | if (Definitions.UserName == null) 27 | { 28 | while (Definitions.UserName == null) 29 | { 30 | await Task.Delay(1000); 31 | } 32 | UpdatePresence("Logged in as " + Definitions.UserName, ""); 33 | } 34 | } 35 | } 36 | 37 | } 38 | 39 | public static void Stop() 40 | { 41 | if (client != null && client.IsInitialized) 42 | { 43 | client.ClearPresence(); 44 | client.Deinitialize(); 45 | } 46 | } 47 | 48 | public static void UpdatePresence(string state, string details) 49 | { 50 | if (client.IsInitialized) 51 | { 52 | client.SetPresence(new RichPresence() 53 | { 54 | State = state, 55 | Details = details, 56 | Timestamps = new Timestamps() 57 | { 58 | Start = DateTime.UtcNow 59 | }, 60 | Assets = new Assets() 61 | { 62 | LargeImageKey = "exit", 63 | LargeImageText = "Exit", 64 | SmallImageKey = "battlepass", 65 | SmallImageText = "Tier 100" 66 | }, 67 | Buttons = new Button[] 68 | { 69 | new Button() { Label = "Join Exit Discord", Url = "https://discord.gg/exitfn" }, 70 | new Button() { Label = "Join Support Server", Url = "https://discord.gg/Wx9pHBW3Tm" } 71 | } 72 | }); 73 | } 74 | } 75 | 76 | } -------------------------------------------------------------------------------- /Core/Launcher/AsyncStreamReader.cs: -------------------------------------------------------------------------------- 1 | // CREDITS: https://github.com/Londiuh/FortniteLauncher/blob/master/FortniteLauncher/Utilities/AsyncStreamReader.cs 2 | using System; 3 | using System.IO; 4 | 5 | public partial class AsyncStreamReader 6 | { 7 | public event EventHandler DataReceived; 8 | 9 | public bool Active { get; private set; } 10 | 11 | public AsyncStreamReader(StreamReader reader) 12 | { 13 | _reader = reader; 14 | Active = false; 15 | } 16 | 17 | public void Start() 18 | { 19 | if (!Active) 20 | { 21 | Active = true; 22 | BeginReadAsync(); 23 | } 24 | } 25 | 26 | public void Stop() 27 | { 28 | Active = false; 29 | } 30 | 31 | protected void BeginReadAsync() 32 | { 33 | if (Active) _reader.BaseStream.BeginRead(_buffer, 0, _buffer.Length, new AsyncCallback(ReadCallback), null); 34 | } 35 | 36 | private void ReadCallback(IAsyncResult asyncResult) 37 | { 38 | if (_reader == null) return; 39 | 40 | int num = _reader.BaseStream.EndRead(asyncResult); 41 | string data = null; 42 | 43 | if (num > 0) 44 | data = _reader.CurrentEncoding.GetString(_buffer, 0, num); 45 | else 46 | Active = false; 47 | 48 | DataReceived?.Invoke(this, data); 49 | 50 | BeginReadAsync(); 51 | } 52 | 53 | protected readonly byte[] _buffer = new byte[4096]; 54 | 55 | private StreamReader _reader; 56 | 57 | public delegate void EventHandler(object sender, string data); 58 | } 59 | -------------------------------------------------------------------------------- /Core/Launcher/CheckSuspendedProcess.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace FortniteLauncher.CheckSuspendedProcess 5 | { 6 | public static class NativeMethodsProc 7 | { 8 | [DllImport("ntdll.dll")] 9 | public static extern int NtQueryInformationProcess(IntPtr processHandle, int processInformationClass, out int processInformation, int processInformationLength, IntPtr returnLength); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Core/Launcher/CrashHandler.cs: -------------------------------------------------------------------------------- 1 | using FortniteLauncher; 2 | using FortniteLauncher.Interop; 3 | using FortniteLauncher.Services; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Diagnostics; 7 | using System.IO; 8 | using System.IO.Compression; 9 | using System.Linq; 10 | using System.Text; 11 | using System.Threading; 12 | using System.Threading.Tasks; 13 | 14 | class CrashHandler 15 | { 16 | public static async Task Start() 17 | { 18 | string processName = "CrashReportClient"; 19 | bool isProcessRunning; 20 | int crashes = 5; 21 | while (true) 22 | { 23 | isProcessRunning = IsProcessRunning(processName); 24 | 25 | if (isProcessRunning) 26 | { 27 | Fortnite.KillFnProc(); 28 | bool repairfiles = await DialogService.YesOrNoDialog("Fortnite has crashed would you like to repair the files? Note: All in game settings will be reset!", "Fatal Error"); 29 | crashes++; 30 | if (crashes < 5) 31 | { 32 | bool sendlogs = await DialogService.YesOrNoDialog("Fortnite has crashed to many times please create a ticket in the Discord server and provide them with the zip file.", "Fatal Error"); 33 | if (sendlogs) 34 | { 35 | string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); 36 | Fortnite.KillFnProc(); 37 | 38 | // Define the source directory to be zipped 39 | string sourceDirectory = localAppData + "\\FortniteGame"; 40 | 41 | if (Directory.Exists(sourceDirectory)) 42 | { 43 | // Define the path to the log file to be included in the zip 44 | string logFilePath = sourceDirectory + "\\Saved\\Logs\\FortniteGame.log"; 45 | 46 | if (File.Exists(logFilePath)) 47 | { 48 | string CurrentDirectory = Directory.GetCurrentDirectory(); 49 | if (!Directory.Exists(CurrentDirectory + "\\Support\\Logs")) 50 | { 51 | Directory.CreateDirectory(CurrentDirectory + "\\Support\\Logs"); 52 | } 53 | string zipFilePath = CurrentDirectory + "\\Support\\Logs\\"; 54 | Process.Start(zipFilePath); 55 | ZipFile.CreateFromDirectory(sourceDirectory, zipFilePath); 56 | } 57 | } 58 | } 59 | return; 60 | } 61 | if (repairfiles) 62 | { 63 | try 64 | { 65 | string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); 66 | Fortnite.KillFnProc(); 67 | if (Directory.Exists(localAppData + "\\FortniteGame")) 68 | { 69 | Directory.Delete(localAppData + "\\FortniteGame", true); 70 | } 71 | if (Directory.Exists(Globals.m_config.FortnitePath + "\\EasyAntiCheat")) 72 | { 73 | Directory.Delete(Globals.m_config.FortnitePath + "\\EasyAntiCheat", true); 74 | } 75 | if (File.Exists(Globals.m_config.FortnitePath + "\\ExitClient-Win64-Shipping.exe")) 76 | { 77 | File.Delete(Globals.m_config.FortnitePath + "\\ExitClient-Win64-Shipping.exe"); 78 | } 79 | if (File.Exists(Globals.m_config.FortnitePath + "\\Engine\\Binaries\\ThirdParty\\NVIDIA\\NVaftermath\\Win64\\GFSDK_Aftermath_Lib.x64.dll")) 80 | { 81 | File.Delete(Globals.m_config.FortnitePath + "\\Engine\\Binaries\\ThirdParty\\NVIDIA\\NVaftermath\\Win64\\GFSDK_Aftermath_Lib.x64.dll"); 82 | } 83 | await Task.Delay(5000); 84 | DialogService.ShowSimpleDialog("Fortnite files have been repaired successfully.", "Success"); 85 | } catch { } 86 | 87 | } 88 | break; 89 | } 90 | await Task.Delay(1000); 91 | } 92 | } 93 | 94 | 95 | static bool IsProcessRunning(string processName) 96 | { 97 | Process[] processes = Process.GetProcessesByName(processName); 98 | 99 | return processes.Length > 0; 100 | } 101 | } -------------------------------------------------------------------------------- /Core/Launcher/Launcher.cs: -------------------------------------------------------------------------------- 1 | using ABI.Windows.ApplicationModel.Activation; 2 | using Amazon.Auth.AccessControlPolicy; 3 | using CommunityToolkit.Labs.WinUI; 4 | using Microsoft.UI.Xaml; 5 | using Microsoft.UI.Xaml.Controls; 6 | using Microsoft.UI.Xaml.Shapes; // Make sure this is fully qualified. 7 | using MongoDB.Driver.Core.Misc; 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Diagnostics; 11 | using System.Globalization; 12 | using System.IO; 13 | using System.Linq; 14 | using System.Net; 15 | using System.Runtime.CompilerServices; 16 | using System.Text; 17 | using System.Threading; 18 | using System.Threading.Tasks; 19 | using Windows.Devices.Bluetooth.Advertisement; 20 | using Windows.Gaming.Input; 21 | using Windows.UI.ViewManagement; 22 | using WinUIEx; 23 | using static CommunityToolkit.WinUI.UI.Animations.Expressions.ExpressionValues; 24 | using FortniteLauncher.Pages; 25 | using FortniteLauncher.Services; 26 | using FortniteLauncher.Core.Mods; 27 | 28 | public class Fortnite 29 | { 30 | public static async Task Launch(string GamePath, string Email, string Password) 31 | { 32 | try 33 | { 34 | // Delete the BattlEye folder 35 | //string battlEyeFolderPath = System.IO.Path.Combine(GamePath, "FortniteGame", "Binaries", "Win64", "BattlEye"); // Fully qualify System.IO.Path 36 | 37 | //if (Directory.Exists(battlEyeFolderPath)) 38 | { 39 | //Directory.Delete(battlEyeFolderPath, true); 40 | } 41 | 42 | // Delete the FortniteClient-Win64-Shipping_BE.exe file 43 | //string exeFilePath_BE = System.IO.Path.Combine(GamePath, "FortniteGame", "Binaries", "Win64", "FortniteClient-Win64-Shipping_BE.exe"); // Fully qualify System.IO.Path 44 | 45 | //if (File.Exists(exeFilePath_BE)) 46 | { 47 | //File.Delete(exeFilePath_BE); 48 | } 49 | 50 | // Delete the FortniteClient-Win64-Shipping_EAC.exe file 51 | //string exeFilePath_EAC = System.IO.Path.Combine(GamePath, "FortniteGame", "Binaries", "Win64", "FortniteClient-Win64-Shipping_EAC.exe"); // Fully qualify System.IO.Path 52 | 53 | //if (File.Exists(exeFilePath_EAC)) 54 | { 55 | //File.Delete(exeFilePath_EAC); 56 | } 57 | 58 | WhitelistedProcesses.ProcessCheckLoops(); 59 | KillFnProc(); 60 | CrashHandler.Start(); 61 | //pakcheck(GamePath); 62 | StartLauncherProcesses(GamePath, Email, Password); 63 | PlayPage.STATIC_MainLaunchCard.Header = "Close Exit"; 64 | PlayPage.STATIC_MainLaunchCard.Description = "Click here to close Exit. If you're experiencing issues, please restart your computer."; 65 | PlayPage.STATIC_MainLaunchCard.Content = null; 66 | FontIcon icon2 = new FontIcon(); 67 | icon2.Glyph = "\uE8BB"; 68 | PlayPage.STATIC_MainLaunchCard.HeaderIcon = icon2; 69 | Definitions.BindPlayButton = false; 70 | PlayPage.STATIC_MainLaunchCard.Click += STATIC_MainLaunchCard_CloseClicked; 71 | } 72 | catch (Exception ex) 73 | { 74 | Error(); 75 | DialogService.ShowSimpleDialog("Failed to start Fortnite process: " + ex, "Error"); 76 | } 77 | } 78 | 79 | public static void Error() 80 | { 81 | KillFnProc(); 82 | PlayPage.STATIC_MainLaunchCard.Header = "Launch Season 4"; 83 | PlayPage.STATIC_MainLaunchCard.Description = "Launch Fortnite Chapter 2 Season 4 powered by Exit"; 84 | 85 | FontIcon icon = new FontIcon(); 86 | icon.Glyph = "\uE768"; 87 | PlayPage.STATIC_MainLaunchCard.HeaderIcon = icon; 88 | PlayPage.STATIC_MainLaunchCard.Tag = "Launch"; 89 | PlayPage.STATIC_MainLaunchCard.Content = null; 90 | Definitions.BindPlayButton = true; 91 | return; 92 | } 93 | 94 | public static void STATIC_MainLaunchCard_CloseClicked(object sender, RoutedEventArgs e) 95 | { 96 | if (!Definitions.BindPlayButton) 97 | { 98 | try 99 | { 100 | Error(); 101 | } 102 | catch { } 103 | } 104 | } 105 | 106 | private static async Task StartLauncherProcesses(string gamePath, string email, string password) 107 | { 108 | try 109 | { 110 | Process.Start(new ProcessStartInfo() 111 | { 112 | FileName = gamePath + "\\FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe", 113 | CreateNoWindow = true, 114 | UseShellExecute = false 115 | }); 116 | 117 | Process.Start(new ProcessStartInfo() 118 | { 119 | FileName = gamePath + "\\FortniteGame\\Binaries\\Win64\\FortniteClient-Win64-Shipping_BE.exe", 120 | CreateNoWindow = false, // Set to false to show the window 121 | UseShellExecute = false 122 | }); 123 | 124 | Process launcherProcess = new Process 125 | { 126 | StartInfo = new ProcessStartInfo(gamePath + "\\EasyAntiCheat\\EasyAntiCheat_EOS_Setup.exe") 127 | { 128 | Arguments = "install \"ef7b6dadbcdf42c6872aa4ad596bbeaf\"", 129 | CreateNoWindow = true, 130 | UseShellExecute = false, 131 | WindowStyle = ProcessWindowStyle.Hidden 132 | } 133 | }; 134 | launcherProcess.Start(); 135 | 136 | Process gameProcess = new Process 137 | { 138 | StartInfo = new ProcessStartInfo(gamePath + "\\ExitClient-Win64-Shipping.exe") 139 | { 140 | Arguments = $"-AUTH_LOGIN={email} -AUTH_PASSWORD={password} -AUTH_TYPE=epic -epicapp=Fortnite -epicenv=Prod -epiclocale=en-us -epicportal -skippatchcheck -nobe -fltoken=3db3ba5dcbd2e16703f3978d -caldera=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50X2lkIjoiYmU5ZGE1YzJmYmVhNDQw7DBjnzDnXyyEnX7OljJm-j2d88G_WgwQ9wrE6lwMEHZHjBd1ISJdUO1UVUqkfLdU5nofBQ -fromfl=eac", 141 | RedirectStandardOutput = true 142 | } 143 | }; 144 | gameProcess.EnableRaisingEvents = true; 145 | gameProcess.Exited += GameProcessExited; 146 | gameProcess.StartInfo.RedirectStandardOutput = true; 147 | gameProcess.StartInfo.UseShellExecute = false; 148 | gameProcess.Start(); 149 | } 150 | catch (Exception ex) 151 | { 152 | Error(); 153 | DialogService.ShowSimpleDialog("An Error occured while launching Fortnite: " + ex.Message, "Error"); 154 | return; 155 | } 156 | } 157 | 158 | static void GameProcessExited(object sender, EventArgs e) 159 | { 160 | KillFnProc(); 161 | try 162 | { 163 | //Definitions.MainWindow.Restore(); // it dont work ): 164 | } 165 | catch (Exception ex) 166 | { 167 | //DialogService.ShowSimpleDialog("Error while restoring window: " + ex, "Error"); // DO NOT UNCOMMENT!!! 168 | } 169 | } 170 | 171 | static void KillProcessByName(string processName) 172 | { 173 | Process[] processes = Process.GetProcessesByName(processName); 174 | 175 | foreach (Process process in processes) 176 | { 177 | try 178 | { 179 | process.Kill(); 180 | process.WaitForExit(); 181 | } 182 | catch 183 | { 184 | } 185 | } 186 | } 187 | public static void KillFnProc() 188 | { 189 | KillProcessByName("FortniteClient-Win64-Shipping"); 190 | KillProcessByName("FortniteClient-Win64-Shipping_BE"); 191 | KillProcessByName("FortniteClient-Win64-Shipping_EAC"); 192 | KillProcessByName("ExitClient-Win64-Shipping"); 193 | KillProcessByName("FortniteLauncher"); 194 | KillProcessByName("EpicGamesLauncher"); 195 | KillProcessByName("CrashReportClient"); 196 | } 197 | } -------------------------------------------------------------------------------- /Core/Loops/AccountCheck.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml.Controls; 2 | using Microsoft.UI.Xaml.Media; 3 | using Microsoft.UI; 4 | using FortniteLauncher.Pages; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using Windows.System; 11 | using Microsoft.UI.Xaml; 12 | using FortniteLauncher.Services; 13 | using System.Runtime.CompilerServices; 14 | 15 | namespace FortniteLauncher.Core.Loops 16 | { 17 | public class AccountCheck 18 | { 19 | public static async Task CheckAccount() 20 | { 21 | try 22 | { 23 | while (true) 24 | { 25 | MongoDB.User user = new MongoDB.User(); 26 | if (user != null) 27 | { 28 | if (user.banned) 29 | { 30 | DialogService.ShowSimpleDialog("You have been banned.", "Error"); 31 | Fortnite.KillFnProc(); 32 | 33 | await Task.Delay(250); 34 | 35 | MainWindow.ShellFrame.Navigate(typeof(LoginPage)); 36 | } 37 | } else 38 | { 39 | DialogService.ShowSimpleDialog("Error user is null", "Error"); 40 | Fortnite.KillFnProc(); 41 | await Task.Delay(250); 42 | 43 | MainWindow.ShellFrame.Navigate(typeof(LoginPage)); 44 | } 45 | await Task.Delay(1000); 46 | } 47 | } catch { } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Core/Mods/Anticheat.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml.Controls; 2 | using Microsoft.UI.Xaml.Media; 3 | using Microsoft.UI.Xaml; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Diagnostics; 7 | using System.IO; 8 | using System.IO.Compression; 9 | using System.Linq; 10 | using System.Net; 11 | using System.Threading.Tasks; 12 | using System.Threading; 13 | using FortniteLauncher.Pages; 14 | using FortniteLauncher.Services; 15 | using FortniteLauncher.Core.Mods; 16 | using FortniteLauncher.Pages; 17 | using FortniteLauncher.Services; 18 | using SharpCompress.Archives; 19 | using Windows.ApplicationModel; 20 | 21 | public class Anticheat 22 | { 23 | public static async Task CheckForMods(string FNPath) 24 | { 25 | if (Directory.Exists(FNPath)) 26 | { 27 | if (Directory.Exists(Path.Combine(FNPath, "FortniteGame", "Content", "Paks"))) 28 | { 29 | string directoryPath = Path.Combine(FNPath, "FortniteGame", "Content", "Paks"); 30 | 31 | // S14.60 32 | string[] expectedFiles = new string[] 33 | { 34 | Path.Combine(directoryPath, "global.ucas"), 35 | Path.Combine(directoryPath, "global.utoc"), 36 | Path.Combine(directoryPath, "pakchunk0optional-WindowsClient.pak"), 37 | Path.Combine(directoryPath, "pakchunk0optional-WindowsClient.sig"), 38 | Path.Combine(directoryPath, "pakchunk0optional-WindowsClient.ucas"), 39 | Path.Combine(directoryPath, "pakchunk0optional-WindowsClient.utoc"), 40 | Path.Combine(directoryPath, "pakchunk0-WindowsClient.pak"), 41 | Path.Combine(directoryPath, "pakchunk0-WindowsClient.sig"), 42 | Path.Combine(directoryPath, "pakchunk0-WindowsClient.ucas"), 43 | Path.Combine(directoryPath, "pakchunk0-WindowsClient.utoc"), 44 | Path.Combine(directoryPath, "pakchunk2-WindowsClient.pak"), 45 | Path.Combine(directoryPath, "pakchunk2-WindowsClient.sig"), 46 | Path.Combine(directoryPath, "pakchunk2-WindowsClient.ucas"), 47 | Path.Combine(directoryPath, "pakchunk2-WindowsClient.utoc"), 48 | Path.Combine(directoryPath, "pakchunk5-WindowsClient.pak"), 49 | Path.Combine(directoryPath, "pakchunk5-WindowsClient.sig"), 50 | Path.Combine(directoryPath, "pakchunk5-WindowsClient.ucas"), 51 | Path.Combine(directoryPath, "pakchunk5-WindowsClient.utoc"), 52 | Path.Combine(directoryPath, "pakchunk7-WindowsClient.pak"), 53 | Path.Combine(directoryPath, "pakchunk7-WindowsClient.sig"), 54 | Path.Combine(directoryPath, "pakchunk7-WindowsClient.ucas"), 55 | Path.Combine(directoryPath, "pakchunk7-WindowsClient.utoc"), 56 | Path.Combine(directoryPath, "pakchunk8-WindowsClient.pak"), 57 | Path.Combine(directoryPath, "pakchunk8-WindowsClient.sig"), 58 | Path.Combine(directoryPath, "pakchunk8-WindowsClient.ucas"), 59 | Path.Combine(directoryPath, "pakchunk8-WindowsClient.utoc"), 60 | Path.Combine(directoryPath, "pakchunk9-WindowsClient.pak"), 61 | Path.Combine(directoryPath, "pakchunk9-WindowsClient.sig"), 62 | Path.Combine(directoryPath, "pakchunk9-WindowsClient.ucas"), 63 | Path.Combine(directoryPath, "pakchunk9-WindowsClient.utoc"), 64 | Path.Combine(directoryPath, "pakchunk10_s1-WindowsClient.pak"), 65 | Path.Combine(directoryPath, "pakchunk10_s1-WindowsClient.sig"), 66 | Path.Combine(directoryPath, "pakchunk10_s1-WindowsClient.ucas"), 67 | Path.Combine(directoryPath, "pakchunk10_s1-WindowsClient.utoc"), 68 | Path.Combine(directoryPath, "pakchunk10_s2-WindowsClient.pak"), 69 | Path.Combine(directoryPath, "pakchunk10_s2-WindowsClient.sig"), 70 | Path.Combine(directoryPath, "pakchunk10_s2-WindowsClient.ucas"), 71 | Path.Combine(directoryPath, "pakchunk10_s2-WindowsClient.utoc"), 72 | Path.Combine(directoryPath, "pakchunk10_s3-WindowsClient.pak"), 73 | Path.Combine(directoryPath, "pakchunk10_s3-WindowsClient.sig"), 74 | Path.Combine(directoryPath, "pakchunk10_s3-WindowsClient.ucas"), 75 | Path.Combine(directoryPath, "pakchunk10_s3-WindowsClient.utoc"), 76 | Path.Combine(directoryPath, "pakchunk10_s4-WindowsClient.pak"), 77 | Path.Combine(directoryPath, "pakchunk10_s4-WindowsClient.sig"), 78 | Path.Combine(directoryPath, "pakchunk10_s4-WindowsClient.ucas"), 79 | Path.Combine(directoryPath, "pakchunk10_s4-WindowsClient.utoc"), 80 | Path.Combine(directoryPath, "pakchunk10_s5-WindowsClient.pak"), 81 | Path.Combine(directoryPath, "pakchunk10_s5-WindowsClient.sig"), 82 | Path.Combine(directoryPath, "pakchunk10_s5-WindowsClient.ucas"), 83 | Path.Combine(directoryPath, "pakchunk10_s5-WindowsClient.utoc"), 84 | Path.Combine(directoryPath, "pakchunk10_s6-WindowsClient.pak"), 85 | Path.Combine(directoryPath, "pakchunk10_s6-WindowsClient.sig"), 86 | Path.Combine(directoryPath, "pakchunk10_s6-WindowsClient.ucas"), 87 | Path.Combine(directoryPath, "pakchunk10_s6-WindowsClient.utoc"), 88 | Path.Combine(directoryPath, "pakchunk10_s7-WindowsClient.pak"), 89 | Path.Combine(directoryPath, "pakchunk10_s7-WindowsClient.sig"), 90 | Path.Combine(directoryPath, "pakchunk10_s7-WindowsClient.ucas"), 91 | Path.Combine(directoryPath, "pakchunk10_s7-WindowsClient.utoc"), 92 | Path.Combine(directoryPath, "pakchunk10_s8-WindowsClient.pak"), 93 | Path.Combine(directoryPath, "pakchunk10_s8-WindowsClient.sig"), 94 | Path.Combine(directoryPath, "pakchunk10_s8-WindowsClient.ucas"), 95 | Path.Combine(directoryPath, "pakchunk10_s8-WindowsClient.utoc"), 96 | Path.Combine(directoryPath, "pakchunk10_s9-WindowsClient.pak"), 97 | Path.Combine(directoryPath, "pakchunk10_s9-WindowsClient.sig"), 98 | Path.Combine(directoryPath, "pakchunk10_s9-WindowsClient.ucas"), 99 | Path.Combine(directoryPath, "pakchunk10_s9-WindowsClient.utoc"), 100 | Path.Combine(directoryPath, "pakchunk10_s10-WindowsClient.pak"), 101 | Path.Combine(directoryPath, "pakchunk10_s10-WindowsClient.sig"), 102 | Path.Combine(directoryPath, "pakchunk10_s10-WindowsClient.ucas"), 103 | Path.Combine(directoryPath, "pakchunk10_s10-WindowsClient.utoc"), 104 | Path.Combine(directoryPath, "pakchunk10_s11-WindowsClient.pak"), 105 | Path.Combine(directoryPath, "pakchunk10_s11-WindowsClient.sig"), 106 | Path.Combine(directoryPath, "pakchunk10_s11-WindowsClient.ucas"), 107 | Path.Combine(directoryPath, "pakchunk10_s11-WindowsClient.utoc"), 108 | Path.Combine(directoryPath, "pakchunk10_s12-WindowsClient.pak"), 109 | Path.Combine(directoryPath, "pakchunk10_s12-WindowsClient.sig"), 110 | Path.Combine(directoryPath, "pakchunk10_s12-WindowsClient.ucas"), 111 | Path.Combine(directoryPath, "pakchunk10_s12-WindowsClient.utoc"), 112 | Path.Combine(directoryPath, "pakchunk10_s13-WindowsClient.pak"), 113 | Path.Combine(directoryPath, "pakchunk10_s13-WindowsClient.sig"), 114 | Path.Combine(directoryPath, "pakchunk10_s13-WindowsClient.ucas"), 115 | Path.Combine(directoryPath, "pakchunk10_s13-WindowsClient.utoc"), 116 | Path.Combine(directoryPath, "pakchunk10_s14-WindowsClient.pak"), 117 | Path.Combine(directoryPath, "pakchunk10_s14-WindowsClient.sig"), 118 | Path.Combine(directoryPath, "pakchunk10_s14-WindowsClient.ucas"), 119 | Path.Combine(directoryPath, "pakchunk10_s14-WindowsClient.utoc"), 120 | Path.Combine(directoryPath, "pakchunk10_s15-WindowsClient.pak"), 121 | Path.Combine(directoryPath, "pakchunk10_s15-WindowsClient.sig"), 122 | Path.Combine(directoryPath, "pakchunk10_s15-WindowsClient.ucas"), 123 | Path.Combine(directoryPath, "pakchunk10_s15-WindowsClient.utoc"), 124 | Path.Combine(directoryPath, "pakchunk10_s16-WindowsClient.pak"), 125 | Path.Combine(directoryPath, "pakchunk10_s16-WindowsClient.sig"), 126 | Path.Combine(directoryPath, "pakchunk10_s16-WindowsClient.ucas"), 127 | Path.Combine(directoryPath, "pakchunk10_s16-WindowsClient.utoc"), 128 | Path.Combine(directoryPath, "pakchunk10_s17-WindowsClient.pak"), 129 | Path.Combine(directoryPath, "pakchunk10_s17-WindowsClient.sig"), 130 | Path.Combine(directoryPath, "pakchunk10_s17-WindowsClient.ucas"), 131 | Path.Combine(directoryPath, "pakchunk10_s17-WindowsClient.utoc"), 132 | Path.Combine(directoryPath, "pakchunk10_s18-WindowsClient.pak"), 133 | Path.Combine(directoryPath, "pakchunk10_s18-WindowsClient.sig"), 134 | Path.Combine(directoryPath, "pakchunk10_s18-WindowsClient.ucas"), 135 | Path.Combine(directoryPath, "pakchunk10_s18-WindowsClient.utoc"), 136 | Path.Combine(directoryPath, "pakchunk10_s19-WindowsClient.pak"), 137 | Path.Combine(directoryPath, "pakchunk10_s19-WindowsClient.sig"), 138 | Path.Combine(directoryPath, "pakchunk10_s19-WindowsClient.ucas"), 139 | Path.Combine(directoryPath, "pakchunk10_s19-WindowsClient.utoc"), 140 | Path.Combine(directoryPath, "pakchunk10_s20-WindowsClient.pak"), 141 | Path.Combine(directoryPath, "pakchunk10_s20-WindowsClient.sig"), 142 | Path.Combine(directoryPath, "pakchunk10_s20-WindowsClient.ucas"), 143 | Path.Combine(directoryPath, "pakchunk10_s20-WindowsClient.utoc"), 144 | Path.Combine(directoryPath, "pakchunk10_s21-WindowsClient.pak"), 145 | Path.Combine(directoryPath, "pakchunk10_s21-WindowsClient.sig"), 146 | Path.Combine(directoryPath, "pakchunk10_s21-WindowsClient.ucas"), 147 | Path.Combine(directoryPath, "pakchunk10_s21-WindowsClient.utoc"), 148 | Path.Combine(directoryPath, "pakchunk10-WindowsClient.pak"), 149 | Path.Combine(directoryPath, "pakchunk10-WindowsClient.sig"), 150 | Path.Combine(directoryPath, "pakchunk10-WindowsClient.ucas"), 151 | Path.Combine(directoryPath, "pakchunk10-WindowsClient.utoc"), 152 | Path.Combine(directoryPath, "pakchunk11_s1-WindowsClient.pak"), 153 | Path.Combine(directoryPath, "pakchunk11_s1-WindowsClient.sig"), 154 | Path.Combine(directoryPath, "pakchunk11_s1-WindowsClient.ucas"), 155 | Path.Combine(directoryPath, "pakchunk11_s1-WindowsClient.utoc"), 156 | Path.Combine(directoryPath, "pakchunk11-WindowsClient.pak"), 157 | Path.Combine(directoryPath, "pakchunk11-WindowsClient.sig"), 158 | Path.Combine(directoryPath, "pakchunk11-WindowsClient.ucas"), 159 | Path.Combine(directoryPath, "pakchunk11-WindowsClient.utoc"), 160 | Path.Combine(directoryPath, "pakchunk1000-WindowsClient.pak"), 161 | Path.Combine(directoryPath, "pakchunk1000-WindowsClient.sig"), 162 | Path.Combine(directoryPath, "pakchunk1000-WindowsClient.ucas"), 163 | Path.Combine(directoryPath, "pakchunk1000-WindowsClient.utoc"), 164 | Path.Combine(directoryPath, "pakchunk1001-WindowsClient.pak"), 165 | Path.Combine(directoryPath, "pakchunk1001-WindowsClient.sig"), 166 | Path.Combine(directoryPath, "pakchunk1001-WindowsClient.ucas"), 167 | Path.Combine(directoryPath, "pakchunk1001-WindowsClient.utoc"), 168 | Path.Combine(directoryPath, "pakchunk1002-WindowsClient.pak"), 169 | Path.Combine(directoryPath, "pakchunk1002-WindowsClient.sig"), 170 | Path.Combine(directoryPath, "pakchunk1002-WindowsClient.ucas"), 171 | Path.Combine(directoryPath, "pakchunk1002-WindowsClient.utoc"), 172 | Path.Combine(directoryPath, "pakchunk1003-WindowsClient.pak"), 173 | Path.Combine(directoryPath, "pakchunk1003-WindowsClient.sig"), 174 | Path.Combine(directoryPath, "pakchunk1003-WindowsClient.ucas"), 175 | Path.Combine(directoryPath, "pakchunk1003-WindowsClient.utoc"), 176 | Path.Combine(directoryPath, "pakchunk1004-WindowsClient.pak"), 177 | Path.Combine(directoryPath, "pakchunk1004-WindowsClient.sig"), 178 | Path.Combine(directoryPath, "pakchunk1004-WindowsClient.ucas"), 179 | Path.Combine(directoryPath, "pakchunk1004-WindowsClient.utoc"), 180 | Path.Combine(directoryPath, "pakchunk1005-WindowsClient.pak"), 181 | Path.Combine(directoryPath, "pakchunk1005-WindowsClient.sig"), 182 | Path.Combine(directoryPath, "pakchunk1005-WindowsClient.ucas"), 183 | Path.Combine(directoryPath, "pakchunk1005-WindowsClient.utoc"), 184 | Path.Combine(directoryPath, "pakchunk1006-WindowsClient.pak"), 185 | Path.Combine(directoryPath, "pakchunk1006-WindowsClient.sig"), 186 | Path.Combine(directoryPath, "pakchunk1006-WindowsClient.ucas"), 187 | Path.Combine(directoryPath, "pakchunk1006-WindowsClient.utoc"), 188 | Path.Combine(directoryPath, "pakchunk1007-WindowsClient.pak"), 189 | Path.Combine(directoryPath, "pakchunk1007-WindowsClient.sig"), 190 | Path.Combine(directoryPath, "pakchunk1007-WindowsClient.ucas"), 191 | Path.Combine(directoryPath, "pakchunk1007-WindowsClient.utoc"), 192 | Path.Combine(directoryPath, "pakChunkEarly-WindowsClient.pak"), 193 | Path.Combine(directoryPath, "pakChunkEarly-WindowsClient.sig"), 194 | Path.Combine(directoryPath, "pakChunkEarly-WindowsClient.ucas"), 195 | Path.Combine(directoryPath, "pakChunkEarly-WindowsClient.utoc"), 196 | }; 197 | 198 | string[] filesInDirectory = Directory.GetFiles(directoryPath); 199 | 200 | bool hasUnexpectedFiles = false; 201 | long totalSize = 0; 202 | List unexpectedFiles = new List(); 203 | foreach (string filePath in filesInDirectory) 204 | { 205 | if (Array.IndexOf(expectedFiles, filePath) == -1) 206 | { 207 | unexpectedFiles.Add(filePath); 208 | if (unexpectedFiles.Count > 5) 209 | { 210 | DialogService.ShowSimpleDialog("Many files are missing please make sure you have selected a 14.60 build.", "Error"); 211 | return "Error"; 212 | } 213 | Fortnite.KillFnProc(); 214 | bool result = await DialogService.YesOrNoDialog($"Exit does not support playing with modded paks. Would you like to remove the listed file(s)? {Environment.NewLine} {string.Join(", ", unexpectedFiles)}", "Modified Client"); 215 | if (result) 216 | { 217 | try 218 | { 219 | foreach (string unexpectedFile in unexpectedFiles) 220 | { 221 | File.Delete(unexpectedFile); 222 | } 223 | } 224 | catch { } 225 | } 226 | 227 | hasUnexpectedFiles = true; 228 | return "Error"; 229 | } 230 | else 231 | { 232 | FileInfo fileInfo = new FileInfo(filePath); 233 | totalSize += fileInfo.Length; 234 | } 235 | } 236 | 237 | long expectedSize = 97881153484; 238 | 239 | if (hasUnexpectedFiles) 240 | { 241 | Fortnite.KillFnProc(); 242 | Console.WriteLine("Error: There are unexpected files in the directory."); 243 | return "Error"; 244 | } 245 | else 246 | { 247 | if (totalSize == expectedSize) 248 | { 249 | return "Success"; 250 | } 251 | else 252 | { 253 | Fortnite.KillFnProc(); 254 | DialogService.ShowSimpleDialog($"Pak check failed invalid size.", "Error"); 255 | return "Error"; 256 | } 257 | } 258 | } 259 | else 260 | { 261 | Fortnite.KillFnProc(); 262 | DialogService.ShowSimpleDialog("Failed to launch Fortnite. Paks directory not found.", "Error"); 263 | return "Error"; 264 | } 265 | } 266 | else 267 | { 268 | Fortnite.KillFnProc(); 269 | DialogService.ShowSimpleDialog("Fortnite path is empty. Please check your settings and try again.", "Error"); 270 | return "Error"; 271 | } 272 | } 273 | 274 | public static async Task VerifyClient(string FNPath) 275 | { 276 | try 277 | { 278 | string[] requiredPaths = new string[] 279 | { 280 | Path.Combine(FNPath, "ExitClient-Win64-Shipping.exe"), 281 | Path.Combine(FNPath, "EasyAntiCheat", "Certificates"), 282 | Path.Combine(FNPath, "EasyAntiCheat", "Licenses"), 283 | Path.Combine(FNPath, "EasyAntiCheat", "Localization"), 284 | Path.Combine(FNPath, "EasyAntiCheat", "EasyAntiCheat_EOS_Setup.exe"), 285 | Path.Combine(FNPath, "EasyAntiCheat", "Settings.json"), 286 | Path.Combine(FNPath, "EasyAntiCheat", "SplashScreen.png") 287 | }; 288 | try 289 | { 290 | if (File.Exists(FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteClient-Win64-Shipping_BE.exe") || !File.Exists(FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteClient-Win64-Shipping_BE.exe")) 291 | { 292 | File.Delete(FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteClient-Win64-Shipping_BE.exe"); 293 | await DownloadFile.DownloadFiles(Definitions.BELauncherurl, FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteClient-Win64-Shipping_BE.exe"); 294 | } 295 | 296 | if (File.Exists(FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe") || !File.Exists(FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe")) 297 | { 298 | File.Delete(FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe"); 299 | await DownloadFile.DownloadFiles(Definitions.Launcherurl, FNPath + "\\FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe"); 300 | } 301 | 302 | 303 | File.Delete(FNPath + "\\Engine\\Binaries\\ThirdParty\\NVIDIA\\NVaftermath\\Win64\\GFSDK_Aftermath_Lib.x64.dll"); 304 | await DownloadFile.DownloadFiles(Definitions.RedirectUrl, FNPath + "\\Engine\\Binaries\\ThirdParty\\NVIDIA\\NVaftermath\\Win64\\GFSDK_Aftermath_Lib.x64.dll"); 305 | if (!File.Exists(Definitions.RootDirectory + "\\Assets\\MemoryLeakFixer.dll")) 306 | { 307 | if (!Directory.Exists(Definitions.RootDirectory + "\\Assets")) 308 | { 309 | Directory.CreateDirectory(Definitions.RootDirectory + "\\Assets"); 310 | } 311 | //await DownloadFile.DownloadFiles(Definitions.ExitMemoryLeakFixer, Definitions.RootDirectory + "\\Assets\\MemoryLeakFixer.dll"); 312 | } 313 | } 314 | catch { } 315 | //Scan(FNPath); 316 | foreach (string path in requiredPaths) 317 | { 318 | if (!Directory.Exists(path) && !File.Exists(path)) 319 | { 320 | await PatchClient(FNPath); 321 | return true; 322 | } 323 | } 324 | 325 | File.Delete(FNPath + "\\EasyAntiCheat\\SplashScreen.png"); 326 | File.Delete(FNPath + "\\EasyAntiCheat\\Settings.json"); 327 | 328 | using (WebClient client = new WebClient()) 329 | { 330 | if (Definitions.ExitSplashScreen == null || Definitions.ExitSettingsJson == null) 331 | { 332 | //await LoginPage.GetDownloads(); 333 | client.DownloadFile(Definitions.ExitSplashScreen, FNPath + "\\EasyAntiCheat\\SplashScreen.png"); 334 | client.DownloadFile(Definitions.ExitSettingsJson, FNPath + "\\EasyAntiCheat\\Settings.json"); 335 | } 336 | else 337 | { 338 | client.DownloadFile(Definitions.ExitSplashScreen, FNPath + "\\EasyAntiCheat\\SplashScreen.png"); 339 | client.DownloadFile(Definitions.ExitSettingsJson, FNPath + "\\EasyAntiCheat\\Settings.json"); 340 | } 341 | } 342 | } 343 | catch (Exception ex) 344 | { 345 | DialogService.ShowSimpleDialog("Error while verifying files: " + ex.Message, "Error"); 346 | return false; 347 | } 348 | 349 | return true; 350 | } 351 | 352 | static async Task DownloadEACPatch(string FNPath) 353 | { 354 | try 355 | { 356 | string url = Definitions.AntiCheatUrl; 357 | string downloadPath = Definitions.RootDirectory + "\\EAC"; 358 | 359 | if (!Directory.Exists(downloadPath)) 360 | { 361 | Directory.CreateDirectory(downloadPath); 362 | } 363 | 364 | string extractionPath = FNPath; 365 | 366 | using (WebClient client = new WebClient()) 367 | { 368 | client.DownloadFile(url, Path.Combine(downloadPath, "EasyAntiCheat.zip")); 369 | } 370 | 371 | ZipFile.ExtractToDirectory(Path.Combine(downloadPath, "EasyAntiCheat.zip"), extractionPath); 372 | } 373 | catch (WebException ex) 374 | { 375 | DialogService.ShowSimpleDialog("Failed to download required files: " + ex.Message, "Webclient Error"); 376 | return; 377 | } 378 | } 379 | 380 | static void StartPatching() 381 | { 382 | PlayPage.STATIC_MainLaunchCard.Header = "Patching Fortnite"; 383 | PlayPage.STATIC_MainLaunchCard.Description = "Downloading required files..."; 384 | } 385 | 386 | public static async Task PatchClient(string FNPath) 387 | { 388 | try 389 | { 390 | ProgressRing loading = new ProgressRing(); 391 | loading.IsIndeterminate = true; 392 | loading.Foreground = new SolidColorBrush(Microsoft.UI.Colors.Black); 393 | loading.HorizontalAlignment = HorizontalAlignment.Center; 394 | 395 | StartPatching(); 396 | 397 | PlayPage.STATIC_MainLaunchCard.Content = loading; 398 | await Task.Delay(1000); 399 | Fortnite.KillFnProc(); 400 | 401 | if (Directory.Exists(FNPath + "\\EasyAntiCheat")) 402 | { 403 | Directory.Delete(FNPath + "\\EasyAntiCheat", true); 404 | } 405 | 406 | if (File.Exists(FNPath + "\\ExitClient-Win64-Shipping.exe")) 407 | { 408 | File.Delete(FNPath + "\\ExitClient-Win64-Shipping.exe"); 409 | } 410 | 411 | await DownloadEACPatch(FNPath); 412 | string downloadPath = Definitions.RootDirectory + "\\EAC"; 413 | 414 | if (Directory.Exists(downloadPath)) 415 | { 416 | Directory.Delete(downloadPath, true); 417 | } 418 | 419 | if (File.Exists(downloadPath + "\\EasyAntiCheat.zip")) 420 | { 421 | File.Delete(downloadPath + "\\EasyAntiCheat.zip"); 422 | } 423 | return "Success"; 424 | } 425 | catch (WebException ex) 426 | { 427 | DialogService.ShowSimpleDialog("An error occurred while installing zip: " + ex.Message, "Error"); 428 | return "Error"; 429 | } 430 | } 431 | } -------------------------------------------------------------------------------- /Core/Mods/DownloadFile.cs: -------------------------------------------------------------------------------- 1 | using FortniteLauncher.Pages; 2 | using System; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.IO.Compression; 6 | using System.Net; 7 | using System.Threading.Tasks; 8 | 9 | namespace FortniteLauncher.Core.Mods 10 | { 11 | internal class DownloadFile 12 | { 13 | public static async Task DownloadFiles(string URL, string path, IProgress progress = null) 14 | { 15 | try 16 | { 17 | using (var webClient = new WebClient()) 18 | { 19 | if (progress != null) 20 | { 21 | webClient.DownloadProgressChanged += (sender, e) => 22 | { 23 | double percentage = (double)e.BytesReceived / e.TotalBytesToReceive * 100; 24 | progress.Report(percentage); 25 | }; 26 | } 27 | 28 | webClient.DownloadFileAsync(new Uri(URL), path); 29 | } 30 | } 31 | catch (WebException ex) 32 | { 33 | Debug.WriteLine("Error while installing required files: " + ex.Message, "WebClient Error"); 34 | } 35 | } 36 | 37 | public static async Task WaitForFileToBeReleased(string filePath) 38 | { 39 | while (IsFileLocked(filePath)) 40 | { 41 | await Task.Delay(100); // Delay to avoid busy-waiting 42 | } 43 | } 44 | 45 | public static bool IsFileLocked(string filePath) 46 | { 47 | try 48 | { 49 | using (var stream = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.None)) 50 | { 51 | // If the file can be opened with no sharing, it's not locked 52 | } 53 | } 54 | catch (IOException) 55 | { 56 | // The file is locked 57 | return true; 58 | } 59 | 60 | // The file is not locked 61 | return false; 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Core/Mods/WhitelistedProcesses.cs: -------------------------------------------------------------------------------- 1 | using FortniteLauncher.Services; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Diagnostics; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Text.RegularExpressions; 8 | using System.Threading.Tasks; 9 | using Windows.Networking; 10 | 11 | namespace FortniteLauncher.Core.Mods 12 | { 13 | internal class WhitelistedProcesses 14 | { 15 | public static List BlockedApps = new List 16 | { 17 | "ida64", "IDAPortable", "OllyDbg", "x64dbg", "Cheat Engine", 18 | "Ghidra", "Binary Ninja", "Radare2", "Hopper", "IDA Free", "PEiD", "Exeinfo PE", 19 | "Procmon", "Wireshark", "Fiddler", "Charles Proxy", "Burp Suite", "ZAP Proxy", 20 | "Wireshark", "Telerik Fiddler", "WiX Toolset", "NSIS", "Inno Setup", "Nullsoft Scriptable Install System", 21 | "Dependency Walker", "PE Explorer", "Resource Hacker", "dnSpy", "ILSpy", "Reflector", 22 | "Eclipse", "PyCharm", "Vim", "WinHex", "Hex Fiend", "Hex Workshop", "IDA Free", "BinaryDiff", "OllyICE", 23 | "GameGuardian", "Memory Editors", "Debuggers", "Disassemblers", "Packet Sniffers", "Proxy Tools", "UuuClient", "ProcessHacker", "Wemod" 24 | 25 | }; 26 | public static async Task ProcessCheckLoops() 27 | { 28 | bool done = false; 29 | while (!done) 30 | { 31 | foreach (var process in Process.GetProcesses()) 32 | { 33 | string processName = process.ProcessName.ToLower(); 34 | if (BlockedApps.Contains(processName)) 35 | { 36 | Fortnite.Error(); 37 | DialogService.ShowSimpleDialog("A whitelisted process is running please close: " + processName + " before playing Exit.", "Error"); 38 | break; 39 | } 40 | } 41 | await Task.Delay(1000); 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Core/MongDB/MongoDB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MongoDB.Bson.Serialization.Attributes; 3 | using MongoDB.Bson; 4 | using MongoDB.Driver; 5 | using System.Threading.Tasks; 6 | using FortniteLauncher.Pages; 7 | using FortniteLauncher.Services; 8 | using MongoDB.Driver.Core.Authentication; 9 | using FortniteLauncher.Core.Loops; 10 | using Microsoft.UI.Xaml; 11 | using CommunityToolkit.WinUI.Helpers; 12 | 13 | namespace FortniteLauncher.MongoDB 14 | { 15 | public static class MongoDBAuthenticator 16 | { 17 | public static async Task CheckLogin(string email, string password) 18 | { 19 | try 20 | { 21 | string cng = await API.MongoDBConnectionString(); 22 | // MongoDB connection string 23 | if (cng == null) 24 | { 25 | return null; 26 | } else 27 | { 28 | string connectionString = cng; 29 | 30 | // MongoDB client 31 | var client = new MongoClient(connectionString); 32 | 33 | // Access the database 34 | var database = client.GetDatabase("Put your backend name here ig i removed mine so people dont hack it"); 35 | 36 | // Access the collection 37 | var collection = database.GetCollection("users"); 38 | 39 | //DialogService.CurcleLoading("Hello"); 40 | // Call VerifyLoginAsync to handle login verification 41 | return await VerifyLoginAsync(collection, email, password); 42 | } 43 | 44 | } 45 | catch (Exception ex) 46 | { 47 | // Properly handle the exception, don't ignore it. 48 | DialogService.ShowSimpleDialog("An Error occurred while Authenticating: " + ex.Message, "Error"); 49 | return "Error"; 50 | } 51 | } 52 | public static async Task VerifyLoginAsync(IMongoCollection collection, string email, string password) 53 | { 54 | try 55 | { 56 | // Query the collection to find the user with the given email 57 | var filter = Builders.Filter.Eq(u => u.email, email); 58 | var user = await collection.Find(filter).SingleOrDefaultAsync(); 59 | 60 | if (user != null) 61 | { 62 | // Check if the user is banned 63 | if (user.banned) 64 | { 65 | return "Banned"; 66 | } 67 | 68 | if (user.Reports > 5) 69 | { 70 | return "Deny"; 71 | } 72 | // Verify the provided password against the stored hashed password using bcrypt 73 | bool isPasswordValid = VerifyPassword(password, user.password); 74 | 75 | if (!isPasswordValid) 76 | { 77 | return "Invalid"; 78 | } 79 | else 80 | { 81 | if (user.username == null) 82 | { 83 | return "Error"; 84 | } 85 | else 86 | { 87 | Definitions.UserName = user.username; 88 | Definitions.Email = email; 89 | Definitions.Password = password; 90 | MainShellPage.DisplayUsername = user.username.ToString(); 91 | AccountCheck.CheckAccount(); 92 | return "Success"; 93 | } 94 | 95 | } 96 | } 97 | else 98 | { 99 | return "Invalid"; 100 | } 101 | } 102 | catch (Exception ex) 103 | { 104 | DialogService.ShowSimpleDialog("An Error occurred while Authenticating: " + ex.Message, "Error"); 105 | return "Error"; 106 | } 107 | } 108 | 109 | // Function to verify the provided password against the stored hashed password using bcrypt 110 | public static bool VerifyPassword(string password, string storedHashedPassword) 111 | { 112 | return BCrypt.Net.BCrypt.Verify(password, storedHashedPassword); 113 | } 114 | } 115 | 116 | // Define a User class that represents the MongoDB document in the "users" collection 117 | public class User 118 | { 119 | [BsonId] 120 | public ObjectId Id { get; set; } 121 | public DateTime created { get; set; } 122 | public bool banned { get; set; } 123 | public string discordId { get; set; } 124 | public string accountId { get; set; } 125 | public string username { get; set; } 126 | public string username_lower { get; set; } 127 | public string email { get; set; } 128 | public string password { get; set; } 129 | public bool mfa { get; set; } 130 | public string matchmakingId { get; set; } 131 | public bool canCreateCodes { get; set; } 132 | public bool isServer { get; set; } 133 | public bool GivenFullLocker { get; set; } 134 | public int Reports { get; set; } 135 | public int __v { get; set; } 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /Core/Settings.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml; 2 | using Newtonsoft.Json; 3 | using FortniteLauncher.Interop; 4 | using FortniteLauncher.Services; 5 | using System; 6 | using System.IO; 7 | using System.Threading.Tasks; 8 | using Windows.Media.DialProtocol; 9 | using Windows.Storage; 10 | 11 | namespace FortniteLauncher.Core 12 | { 13 | public class Settings 14 | { 15 | private static string RootDirectory = Definitions.RootDirectory; 16 | private static string SaveFile = Path.Combine(RootDirectory, "settings.json"); 17 | 18 | public static void SaveSettings() 19 | { 20 | var json = JsonConvert.SerializeObject(Globals.m_config); 21 | 22 | if (!Directory.Exists(RootDirectory)) 23 | { 24 | Directory.CreateDirectory(RootDirectory); 25 | } 26 | 27 | using (var fileStream = new FileStream(SaveFile, FileMode.Create, FileAccess.Write)) 28 | { 29 | using (var writer = new StreamWriter(fileStream)) 30 | { 31 | writer.Write(json); 32 | } 33 | } 34 | } 35 | 36 | public static void LoadSettings() 37 | { 38 | try 39 | { 40 | if (File.Exists(SaveFile)) 41 | { 42 | using (var fileStream = new FileStream(SaveFile, FileMode.Open, FileAccess.Read)) 43 | { 44 | using (var reader = new StreamReader(fileStream)) 45 | { 46 | string json = reader.ReadToEnd(); 47 | Config config = JsonConvert.DeserializeObject(json); 48 | Globals.m_config = config; 49 | } 50 | } 51 | } 52 | else 53 | { 54 | // File not found, set default values 55 | Globals.m_config = new Config 56 | { 57 | IsSoundEnabled = false, 58 | }; 59 | 60 | SaveSettings(); 61 | } 62 | } 63 | catch (Exception ex) 64 | { 65 | //we cannot show a dialog, it might cause a crash as the main window is not loaded yet 66 | MessageBox.Show("An Error occured while loading settings: " + ex.Message, "Error"); 67 | } 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Core/Updates/CheckForUpdates.cs: -------------------------------------------------------------------------------- 1 | using FortniteLauncher.Services; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading; 7 | using System.Threading.Tasks; 8 | 9 | public class CheckForUpdatesAPI 10 | { 11 | public static string CurrentVersion = Definitions.CurrentVersion; 12 | 13 | public static async Task Start() 14 | { 15 | string connection = await API.Connect(); 16 | string apiver = await API.Version(); 17 | if (connection == "Success") 18 | { 19 | Definitions.APIversion = apiver; 20 | checkforupdatesAsync(); 21 | } else if (connection == "Error") 22 | { 23 | DialogService.ShowSimpleDialog("An Error occured while checking for updates.", "Error"); 24 | } else 25 | { 26 | DialogService.ShowSimpleDialog("Unknown API data returned.", "Error"); 27 | } 28 | } 29 | 30 | public static async Task checkforupdatesAsync() 31 | { 32 | if (Definitions.APIversion != CurrentVersion) 33 | { 34 | DialogService.ShowSimpleDialog("A new update was detected latest version: " + Definitions.APIversion + " current version: " + Definitions.CurrentVersion, "outdated"); 35 | Definitions.outdated = true; 36 | return Definitions.APIversion != CurrentVersion; 37 | } else 38 | { 39 | return true; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /Core/def/Definitions.cs: -------------------------------------------------------------------------------- 1 | using MongoDB.Bson.IO; 2 | using FortniteLauncher; 3 | using System; 4 | 5 | internal class Definitions 6 | { 7 | // put all of your shit here so it automaticly downloads and redirects and shit 8 | public static string CurrentVersion = "1.0.0"; 9 | public static string APIurl = "http://yourip:yourport/v1/"; 10 | public static string RootDirectory = Environment.GetEnvironmentVariable("LocalAppData") + "\\FortniteLauncher"; 11 | public static string BELauncherurl = ""; 12 | public static string Launcherurl = null; 13 | public static string RedirectUrl = ""; 14 | public static string AntiCheatUrl = ""; 15 | public static string ExitSplashScreen = ""; 16 | public static string ExitSettingsJson = ""; 17 | public static string APIversion = null; 18 | public static string UserName = null; 19 | public static string FortnitePath = null; 20 | public static string Email = null; 21 | public static string Password = null; 22 | public static bool EOR = false; 23 | public static bool DiscordPRC = true; 24 | public static bool LoggedOut = false; 25 | public static bool RefreshToken = false; 26 | public static bool ForceClose = false; 27 | public static bool outdated = false; 28 | public static bool FinishedAPIRequest = false; 29 | public static bool BindPlayButton = true; 30 | public static bool ConnectionFailedToAPI = false; 31 | 32 | // options 33 | public static bool limitguestfeatures = true; // set to false to enable all features for guests. 34 | public static bool AllowLaunchingAnyVersion = true; // false is limited to 14.60 if set to true it will allow launching any version 12.41 is the highest version tested. 35 | 36 | //secrets 37 | public static string accessToken = "31811a3e1afdb125efa4151438f29928a5dcf6b403c13f0a2dde440bca545654"; 38 | } 39 | -------------------------------------------------------------------------------- /Dialogs/DownloadDialog.xaml: -------------------------------------------------------------------------------- 1 | 2 | 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 | 35 | -------------------------------------------------------------------------------- /Dialogs/DownloadDialog.xaml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml; 2 | using Microsoft.UI.Xaml.Controls; 3 | using Microsoft.UI.Xaml.Controls.Primitives; 4 | using Microsoft.UI.Xaml.Data; 5 | using Microsoft.UI.Xaml.Input; 6 | using Microsoft.UI.Xaml.Media; 7 | using Microsoft.UI.Xaml.Navigation; 8 | using System; 9 | using System.Collections.Generic; 10 | using System.IO; 11 | using System.IO.Compression; 12 | using System.Linq; 13 | using System.Net; 14 | using System.Runtime.InteropServices.WindowsRuntime; 15 | using Windows.Foundation; 16 | using Windows.Foundation.Collections; 17 | using Windows.Storage.Pickers; 18 | using Windows.Storage; 19 | using FortniteLauncher.Core; 20 | using FortniteLauncher.Helpers; 21 | using FortniteLauncher.Interop; 22 | 23 | // To learn more about WinUI, the WinUI project structure, 24 | // and more about our project templates, see: http://aka.ms/winui-project-info. 25 | 26 | namespace FortniteLauncher.Dialogs 27 | { 28 | /// 29 | /// An empty page that can be used on its own or navigated to within a Frame. 30 | /// 31 | public sealed partial class DownloadDialog : Page 32 | { 33 | int _downloadPrecentageProgress; 34 | 35 | ContentDialog _presenterContentDialog; 36 | string _downloadPathFull; 37 | string _downloadPath; 38 | DateTime lastUpdate; 39 | long lastBytes = 0; 40 | 41 | public DownloadDialog(ContentDialog PresenterDialog) 42 | { 43 | this.InitializeComponent(); 44 | 45 | _presenterContentDialog = PresenterDialog; 46 | 47 | PresenterDialog.CloseButtonText = "Cancel"; 48 | PresenterDialog.CloseButtonClick += PresenterDialog_CloseButtonClick; 49 | } 50 | 51 | private void PresenterDialog_CloseButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) 52 | { 53 | 54 | } 55 | 56 | private async void Page_Loaded(object sender, RoutedEventArgs e) 57 | { 58 | try 59 | { 60 | WebClient wc = new WebClient(); 61 | 62 | //get the path 63 | FolderPicker openPicker = new Windows.Storage.Pickers.FolderPicker(); 64 | 65 | // Retrieve the window handle (HWND) of the current WinUI 3 window. 66 | var window = Globals.m_window; 67 | var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window); 68 | 69 | // Initialize the folder picker with the window handle (HWND). 70 | WinRT.Interop.InitializeWithWindow.Initialize(openPicker, hWnd); 71 | 72 | // Set options for your file picker 73 | openPicker.ViewMode = PickerViewMode.Thumbnail; 74 | openPicker.FileTypeFilter.Add("*"); 75 | 76 | // Open the picker for the user to pick a file 77 | StorageFolder folder = await openPicker.PickSingleFolderAsync(); 78 | 79 | if (folder == null) 80 | { 81 | _presenterContentDialog.Hide(); 82 | return; 83 | } 84 | 85 | string path = folder.Path; 86 | _downloadPathFull = path + "\\8.20.zip"; 87 | 88 | //does this actually improve download speed? 89 | //System.Net.ServicePointManager.DefaultConnectionLimit = 90 | 91 | DownloadState.Text = "Downloading"; 92 | 93 | wc.DownloadProgressChanged += Wc_DownloadProgressChanged; 94 | wc.DownloadFileCompleted += Wc_DownloadFileCompleted; 95 | wc.DownloadFileAsync(new Uri("https://cdn.fnbuilds.services/14.60.rar"), _downloadPathFull); 96 | } 97 | catch (Exception ex) 98 | { 99 | MessageBox.Show(ex.Message, "An Error Occured"); 100 | throw; 101 | } 102 | } 103 | 104 | private void Wc_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) 105 | { 106 | DownloadProgress.IsIndeterminate = true; 107 | DownloadState.Text = "Extracting"; 108 | ZipFile.ExtractToDirectory(_downloadPathFull, _downloadPath); 109 | 110 | DownloadState.Text = "Cleaning Up"; 111 | File.Delete(_downloadPathFull); 112 | 113 | try 114 | { 115 | Definitions.FortnitePath = Globals.m_config.FortnitePath; 116 | Globals.m_config.FortnitePath = _downloadPath; 117 | 118 | Settings.SaveSettings(); 119 | } 120 | catch (Exception ex) 121 | { 122 | MessageBox.Show(ex.Message, "An Error Occurred"); 123 | throw; 124 | } 125 | } 126 | 127 | private void Wc_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e) 128 | { 129 | try 130 | { 131 | DownloadProgress.IsIndeterminate = false; 132 | DownloadProgress.Value = e.ProgressPercentage; 133 | DownloadProgressValue.Text = e.ProgressPercentage.ToString() + "%"; 134 | 135 | _presenterContentDialog.Title = (Helpers.StorageSizesConverter.BytesToGigabytes(e.BytesReceived).ToString() + "GB / " + Helpers.StorageSizesConverter.BytesToGigabytes(e.TotalBytesToReceive).ToString() + "GB"); 136 | 137 | if (lastBytes == 0) 138 | { 139 | lastUpdate = DateTime.Now; 140 | lastBytes = e.BytesReceived; 141 | return; 142 | } 143 | 144 | var now = DateTime.Now; 145 | var timeSpan = now - lastUpdate; 146 | var bytesChange = e.BytesReceived - lastBytes; 147 | var bytesPerSecond = bytesChange / timeSpan.Seconds; 148 | 149 | lastBytes = e.BytesReceived; 150 | lastUpdate = now; 151 | 152 | SpeedBox.Text = (StorageSizesConverter.BytesToMegabytes(bytesPerSecond).ToString()) + " MB/s"; 153 | } catch 154 | { 155 | // fix crash?? 156 | } 157 | } 158 | } 159 | } 160 | -------------------------------------------------------------------------------- /ExitLauncher.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinExe 4 | net6.0-windows10.0.19041.0 5 | 10.0.17763.0 6 | Exit 7 | app.manifest 8 | x86;x64;ARM64 9 | win10-x86;win10-x64;win10-arm64 10 | win10-$(Platform).pubxml 11 | true 12 | true 13 | true 14 | None 15 | tiltedlogo.png 16 | Assets\ACTUALL ICON.ico 17 | FortniteLauncher.Program 18 | Exit 19 | False 20 | 21 | Exit 22 | Exit 23 | Rio 24 | Rio 25 | 1.0.0 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 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 | 75 | 76 | 77 | 78 | 79 | 80 | Always 81 | 82 | 83 | Always 84 | 85 | 86 | PreserveNewest 87 | 88 | 89 | Always 90 | 91 | 92 | Always 93 | 94 | 95 | Always 96 | 97 | 98 | Always 99 | 100 | 101 | Always 102 | 103 | 104 | Always 105 | 106 | 107 | Always 108 | 109 | 110 | Always 111 | 112 | 113 | Always 114 | 115 | 116 | 117 | 118 | True 119 | \ 120 | 121 | 122 | True 123 | \ 124 | 125 | 126 | MSBuild:Compile 127 | 128 | 129 | 130 | 131 | MSBuild:Compile 132 | 133 | 134 | 135 | 136 | MSBuild:Compile 137 | 138 | 139 | 140 | 141 | MSBuild:Compile 142 | 143 | 144 | 145 | 146 | MSBuild:Compile 147 | 148 | 149 | 150 | 151 | MSBuild:Compile 152 | 153 | 154 | 155 | 156 | MSBuild:Compile 157 | 158 | 159 | 160 | 165 | 166 | true 167 | 168 | 169 | -------------------------------------------------------------------------------- /ExitLauncher.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.0.31903.59 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExitLauncher", "ExitLauncher.csproj", "{85D05C8E-92A9-407E-94AC-F0FB640DE707}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Debug|ARM64 = Debug|ARM64 12 | Debug|x64 = Debug|x64 13 | Debug|x86 = Debug|x86 14 | Release|Any CPU = Release|Any CPU 15 | Release|ARM64 = Release|ARM64 16 | Release|x64 = Release|x64 17 | Release|x86 = Release|x86 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|Any CPU.ActiveCfg = Debug|x64 21 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|Any CPU.Build.0 = Debug|x64 22 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|Any CPU.Deploy.0 = Debug|x64 23 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|ARM64.ActiveCfg = Debug|ARM64 24 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|ARM64.Build.0 = Debug|ARM64 25 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|ARM64.Deploy.0 = Debug|ARM64 26 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|x64.ActiveCfg = Debug|x64 27 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|x64.Build.0 = Debug|x64 28 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|x64.Deploy.0 = Debug|x64 29 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|x86.ActiveCfg = Debug|x86 30 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|x86.Build.0 = Debug|x86 31 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Debug|x86.Deploy.0 = Debug|x86 32 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|Any CPU.ActiveCfg = Release|x64 33 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|Any CPU.Build.0 = Release|x64 34 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|Any CPU.Deploy.0 = Release|x64 35 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|ARM64.ActiveCfg = Release|ARM64 36 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|ARM64.Build.0 = Release|ARM64 37 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|ARM64.Deploy.0 = Release|ARM64 38 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|x64.ActiveCfg = Release|x64 39 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|x64.Build.0 = Release|x64 40 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|x64.Deploy.0 = Release|x64 41 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|x86.ActiveCfg = Release|x86 42 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|x86.Build.0 = Release|x86 43 | {85D05C8E-92A9-407E-94AC-F0FB640DE707}.Release|x86.Deploy.0 = Release|x86 44 | EndGlobalSection 45 | GlobalSection(SolutionProperties) = preSolution 46 | HideSolutionNode = FALSE 47 | EndGlobalSection 48 | EndGlobal 49 | -------------------------------------------------------------------------------- /Globals.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml; 2 | using Microsoft.UI.Xaml.Controls; 3 | using FortniteLauncher.Pages; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace FortniteLauncher 11 | { 12 | public class Globals 13 | { 14 | public static Window m_window; 15 | 16 | public static Config m_config; 17 | 18 | public static string Version = Definitions.CurrentVersion; 19 | 20 | public static void ChangePaneToggleBtnVisibility(bool IsVisible) 21 | { 22 | Button TitleBarPaneToggleBtn = MainWindow.TitleBarPaneToggleButton; 23 | 24 | if (IsVisible) 25 | { 26 | TitleBarPaneToggleBtn.Visibility = Visibility.Visible; 27 | } 28 | else 29 | { 30 | TitleBarPaneToggleBtn.Visibility = Visibility.Collapsed; 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Helpers/PathHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | namespace FortniteLauncher.Helpers 5 | { 6 | public class PathHelper 7 | { 8 | public static bool IsPathValid(string path) 9 | { 10 | string enginePath = Path.Combine(path, "Engine"); 11 | string fortniteGamePath = Path.Combine(path, "FortniteGame"); 12 | 13 | bool engineDirectoryExists = Directory.Exists(enginePath); 14 | bool fortniteGameDirectoryExists = Directory.Exists(fortniteGamePath); 15 | 16 | if (!engineDirectoryExists || !fortniteGameDirectoryExists) 17 | { 18 | return false; 19 | } 20 | 21 | string parentDirectory = Path.GetDirectoryName(path); 22 | bool parentDirectoryExists = !string.IsNullOrEmpty(parentDirectory) && Directory.Exists(parentDirectory); 23 | 24 | return parentDirectoryExists; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Helpers/StorageSizesConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FortniteLauncher.Helpers 8 | { 9 | internal class StorageSizesConverter 10 | { 11 | public static double BytesToGigabytes(long bytes) 12 | { 13 | return Math.Round((double)bytes / (1024 * 1024 * 1024), 2); 14 | } 15 | public static double BytesToMegabytes(long bytes) 16 | { 17 | return Math.Round((double)bytes / (1024 * 1024), 2); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Interop/MessageBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace FortniteLauncher.Interop 9 | { 10 | internal class MessageBox 11 | { 12 | public enum Options 13 | { 14 | OK 15 | } 16 | public static void Show(string Content, string Title = null, Options Options = Options.OK) 17 | { 18 | [DllImport("user32.dll")] 19 | static extern int MessageBox(IntPtr hWind, String text, String caption, int options); 20 | MessageBox(IntPtr.Zero, Content, Title, Convert.ToInt32(Options)); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 32 | 37 | 38 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml; 2 | using Microsoft.UI.Xaml.Controls; 3 | using Microsoft.UI.Xaml.Media; 4 | using Microsoft.UI.Xaml.Navigation; 5 | using FortniteLauncher.Pages; 6 | using System; 7 | using System.ComponentModel; 8 | using WinUIEx; 9 | 10 | // To learn more about WinUI, the WinUI project structure, 11 | // and more about our project templates, see: http://aka.ms/winui-project-info. 12 | 13 | namespace FortniteLauncher 14 | { 15 | /// 16 | /// An empty window that can be used on its own or navigated to within a Frame. 17 | /// 18 | public sealed partial class MainWindow : WinUIEx.WindowEx 19 | { 20 | public static Frame ShellFrame { get; private set; } 21 | public static Button TitleBarPaneToggleButton { get; private set; } 22 | public MainWindow() 23 | { 24 | this.InitializeComponent(); 25 | this.ExtendsContentIntoTitleBar = true; 26 | this.SetTitleBar(AppTitleBar); 27 | 28 | this.SetWindowSize(1200, 725); 29 | this.CenterOnScreen(); 30 | this.SetIsResizable(false); 31 | 32 | //this might be a bug, but trying to disable maximize makes it even worse 33 | //this.SetIsMaximizable(false); 34 | 35 | this.Title = "Exit Launcher"; 36 | 37 | MicaBackdrop backdrop = new MicaBackdrop(); 38 | backdrop.Kind = Microsoft.UI.Composition.SystemBackdrops.MicaKind.Base; 39 | this.SystemBackdrop = backdrop; 40 | 41 | ShellFrame = MainWindowFrame; 42 | TitleBarPaneToggleButton = PaneToggleBtn; 43 | 44 | MainWindowFrame.Navigate(typeof(LoginPage)); 45 | 46 | this.SetIcon("Assets\\ACTUALL ICON.ico"); 47 | } 48 | private void PaneToggleBtn_Click(object sender, RoutedEventArgs e) 49 | { 50 | try 51 | { 52 | if (MainShellPage.STATIC_MainNavigation.IsPaneOpen) 53 | { 54 | 55 | MainShellPage.STATIC_MainNavigation.IsPaneOpen = false; 56 | } 57 | else 58 | { 59 | 60 | MainShellPage.STATIC_MainNavigation.IsPaneOpen = true; 61 | } 62 | } catch 63 | { 64 | // no. 65 | } 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | ExitLauncher 19 | jurij 20 | Assets\StoreLogo.png 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 36 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Pages/DownloadsPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 28 | 111 | 112 | 113 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Pages/MainShellPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.UI.Xaml; 2 | using Microsoft.UI.Xaml.Controls; 3 | using Microsoft.UI.Xaml.Controls.Primitives; 4 | using Microsoft.UI.Xaml.Data; 5 | using Microsoft.UI.Xaml.Input; 6 | using Microsoft.UI.Xaml.Media; 7 | using Microsoft.UI.Xaml.Navigation; 8 | using FortniteLauncher.Services; 9 | using System; 10 | using System.Collections.Generic; 11 | using System.IO; 12 | using System.Linq; 13 | using System.Runtime.InteropServices.WindowsRuntime; 14 | using System.Threading; 15 | using Windows.Foundation; 16 | using Windows.Foundation.Collections; 17 | using WinUIEx; 18 | using static FortniteLauncher.Services.NavigationService; 19 | 20 | // To learn more about WinUI, the WinUI project structure, 21 | // and more about our project templates, see: http://aka.ms/winui-project-info. 22 | 23 | namespace FortniteLauncher.Pages 24 | { 25 | /// 26 | /// An empty page that can be used on its own or navigated to within a Frame. 27 | /// 28 | public sealed partial class MainShellPage : Page 29 | { 30 | public static string DisplayUsername; 31 | 32 | string _username; 33 | 34 | public static NavigationView STATIC_MainNavigation; 35 | public MainShellPage() 36 | { 37 | this.InitializeComponent(); 38 | InitializeNavigationService(MainNavigation, MainBreadcrumb, RootFrame); 39 | 40 | _username = DisplayUsername; 41 | 42 | MainNavigation.SelectedItem = PlayPageItem; 43 | 44 | Globals.ChangePaneToggleBtnVisibility(true); 45 | 46 | } 47 | 48 | private void MainNavigation_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) 49 | { 50 | if (args.IsSettingsSelected) 51 | { 52 | NavigationService.Navigate(typeof(SettingsPage), "Settings", true); 53 | } 54 | if ((args.SelectedItem as NavigationViewItem) == PlayPageItem) 55 | { 56 | NavigationService.Navigate(typeof(PlayPage), "Play", true); 57 | ChangeBreadcrumbVisibility(false); 58 | } 59 | if ((args.SelectedItem as NavigationViewItem) == DownloadsItem) 60 | { 61 | NavigationService.Navigate(typeof(DownloadsPage), "Downloads", true); 62 | } 63 | if ((args.SelectedItem as NavigationViewItem) == ItemShopItem) 64 | { 65 | NavigationService.Navigate(typeof(ItemShopPage), "Item Shop", true); 66 | } 67 | if ((args.SelectedItem as NavigationViewItem) == ServerStatusItem) 68 | { 69 | NavigationService.Navigate(typeof(ServerStatusPage), "Server Status", true); 70 | } 71 | ElementSoundPlayer.Play(ElementSoundKind.Invoke); 72 | } 73 | 74 | private void MainBreadcrumb_ItemClicked(BreadcrumbBar sender, BreadcrumbBarItemClickedEventArgs args) 75 | { 76 | if (args.Index < NavigationService.BreadCrumbs.Count - 1) 77 | { 78 | var crumb = (Breadcrumb)args.Item; 79 | crumb.NavigateToFromBreadcrumb(args.Index); 80 | } 81 | } 82 | 83 | private void PaneContent_Click(object sender, RoutedEventArgs e) 84 | { 85 | MainNavigation.SelectedItem = null; 86 | NavigationService.Navigate(typeof(SettingsPage), "Settings", true); 87 | } 88 | 89 | private void MainNavigation_Loaded(object sender, RoutedEventArgs e) 90 | { 91 | STATIC_MainNavigation = MainNavigation; 92 | } 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /Pages/PlayPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |