aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Ui/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx/Ui/Program.cs')
-rw-r--r--Ryujinx/Ui/Program.cs22
1 files changed, 19 insertions, 3 deletions
diff --git a/Ryujinx/Ui/Program.cs b/Ryujinx/Ui/Program.cs
index fdbc59a5..053cf1be 100644
--- a/Ryujinx/Ui/Program.cs
+++ b/Ryujinx/Ui/Program.cs
@@ -50,9 +50,25 @@ namespace Ryujinx
}
else if (File.Exists(args[0]))
{
- Console.WriteLine("Loading as homebrew.");
-
- Device.LoadProgram(args[0]);
+ switch (Path.GetExtension(args[0]).ToLowerInvariant())
+ {
+ case ".xci":
+ Console.WriteLine("Loading as XCI.");
+ Device.LoadXci(args[0]);
+ break;
+ case ".nca":
+ Console.WriteLine("Loading as NCA.");
+ Device.LoadNca(args[0]);
+ break;
+ case ".nsp":
+ Console.WriteLine("Loading as NSP.");
+ Device.LoadNsp(args[0]);
+ break;
+ default:
+ Console.WriteLine("Loading as homebrew.");
+ Device.LoadProgram(args[0]);
+ break;
+ }
}
}
else