Add internal Logging support2

Add Logging Class.
Replace all Console.WriteLine() to looks better.
Add debug informations of IpcMessage.
Add informations inside Windows Titles.
This commit is contained in:
AcK77 2018-02-09 01:39:35 +01:00
parent fcaf8dfb75
commit a417c2c3b9
4 changed files with 6 additions and 4 deletions

View file

@ -351,7 +351,9 @@ void main(void) {
protected override void OnRenderFrame(FrameEventArgs e)
{
GL.Viewport(0, 0, 1280, 720);
Title = $"Ryujinx Screen - (Vsync: {VSync} - FPS: {1f / e.Time:0})";
GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
RenderFb();

View file

@ -9,7 +9,7 @@ namespace Ryujinx
{
static void Main(string[] args)
{
Console.Title = "RyujiNX";
Console.Title = "Ryujinx Console";
IGalRenderer Renderer = new OpenGLRenderer();

View file

@ -50,7 +50,7 @@ namespace Ryujinx.OsHle.Objects
}
catch (Exception)
{
Logging.Error("OpenAL Error! PS: Install OpenAL Core SDK!");
Logging.Warning("OpenAL Error! PS: Install OpenAL Core SDK!");
OpenALInstalled = false;
}

View file

@ -563,7 +563,7 @@ namespace Ryujinx.OsHle.Services
NvMap.Kind = Kind;
}
Logging.Info($"NvMapIocAlloc at {NvMap.Address:x16}");
Logging.Debug($"NvMapIocAlloc at {NvMap.Address:x16}");
return 0;
}