diff options
| author | Ac_K <Acoustik666@gmail.com> | 2018-02-09 01:43:22 +0100 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-02-08 21:43:22 -0300 |
| commit | 9e8f02b66dabd70cfe6ec425f194119f1cb15542 (patch) | |
| tree | 269b684b538491a645e626f93dcc988cfaf3b8d5 /Program.cs | |
| parent | ae91da5b60789e4e900823a6ec999ce0d748911e (diff) | |
Add internal Logging support (#3)
* Add internal Logging support
Add class Logging.
Replace all Console.WriteLine() to looks better.
Add informations inside Windows Titles.
* Revert "Add internal Logging support"
This reverts commit 275d363aaf30011f238010572cfdb320bd7b627f.
* Add internal Logging support
Add Logging Class.
Replace all Console.WriteLine() to looks better.
Add debug informations of IpcMessage.
Add informations inside Windows Titles.
* Add internal Logging support2
Add Logging Class.
Replace all Console.WriteLine() to looks better.
Add debug informations of IpcMessage.
Add informations inside Windows Titles.
Diffstat (limited to 'Program.cs')
| -rw-r--r-- | Program.cs | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -9,6 +9,8 @@ namespace Ryujinx { static void Main(string[] args) { + Console.Title = "Ryujinx Console"; + IGalRenderer Renderer = new OpenGLRenderer(); Switch Ns = new Switch(Renderer); @@ -21,27 +23,30 @@ namespace Ryujinx if (RomFsFiles.Length > 0) { - Console.WriteLine("Loading as cart with RomFS."); + Logging.Info("Loading as cart with RomFS."); + Console.Title += " - Cart (with RomFS) - " + args[0]; Ns.Os.LoadCart(args[0], RomFsFiles[0]); } else { - Console.WriteLine("Loading as cart WITHOUT RomFS."); + Logging.Info("Loading as cart WITHOUT RomFS."); + Console.Title += " - Cart (without RomFS) - " + args[0]; Ns.Os.LoadCart(args[0]); } } else if (File.Exists(args[0])) { - Console.WriteLine("Loading as homebrew."); + Logging.Info("Loading as homebrew."); + Console.Title += " - Homebrew - " + args[0]; Ns.Os.LoadProgram(args[0]); } } else { - Console.WriteLine("Please specify the folder with the NSOs/IStorage or a NSO/NRO."); + Logging.Error("Please specify the folder with the NSOs/IStorage or a NSO/NRO."); } using (GLScreen Screen = new GLScreen(Ns, Renderer)) |
