From 89f8fcbbfa70ffbd62138c71078df0d042130a07 Mon Sep 17 00:00:00 2001 From: Simon Aarons <40786398+simonmkwii-dev@users.noreply.github.com> Date: Sat, 13 Oct 2018 20:04:47 +1100 Subject: [PATCH] Let's try this again... --- Ryujinx/Ui/Program.cs | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Ryujinx/Ui/Program.cs b/Ryujinx/Ui/Program.cs index 053cf1be4b..89f14fda92 100644 --- a/Ryujinx/Ui/Program.cs +++ b/Ryujinx/Ui/Program.cs @@ -1,4 +1,4 @@ -using Ryujinx.Audio; +using Ryujinx.Audio; using Ryujinx.Audio.OpenAL; using Ryujinx.Graphics.Gal; using Ryujinx.Graphics.Gal.OpenGL; @@ -24,7 +24,7 @@ namespace Ryujinx Device.Log.Updated += ConsoleLog.Log; - if (args.Length == 1) + if (args.Length >= 1) { if (Directory.Exists(args[0])) { @@ -57,8 +57,24 @@ namespace Ryujinx Device.LoadXci(args[0]); break; case ".nca": - Console.WriteLine("Loading as NCA."); - Device.LoadNca(args[0]); + if (args.Length > 1) + { + if (Path.GetExtension(args[1]).ToLowerInvariant() == ".nca") + { + Console.WriteLine("Loading as NCA with update."); + Device.LoadNca(args[0], args[1]); + } + else + { + Console.WriteLine("Second argument invalid, loading as NCA."); + Device.LoadNca(args[0]); + } + } + else + { + Console.WriteLine("Loading as NCA."); + Device.LoadNca(args[0]); + } break; case ".nsp": Console.WriteLine("Loading as NSP.");