Let's try this again...

This commit is contained in:
Simon Aarons 2018-10-13 20:04:47 +11:00 committed by GitHub
parent aa1cd849cf
commit 89f8fcbbfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.");