mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-28 13:20:33 +00:00
36 lines
915 B
C#
36 lines
915 B
C#
|
using Gtk;
|
||
|
using System;
|
||
|
using System.Reflection;
|
||
|
using System.Linq;
|
||
|
using Ryujinx.Core;
|
||
|
using Ryujinx.Core.Logging;
|
||
|
|
||
|
namespace Ryujinx.UI
|
||
|
{
|
||
|
class Program
|
||
|
{
|
||
|
[STAThread]
|
||
|
public static void Main(string[] args)
|
||
|
{
|
||
|
Application.Init();
|
||
|
|
||
|
Console.Title = "Ryujinx Console";
|
||
|
|
||
|
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||
|
AppDomain.CurrentDomain.AppendPrivatePath(@"Dependencies\");
|
||
|
|
||
|
Console.SetOut(UI.Debugging.LogPage.LogWriter);
|
||
|
|
||
|
var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames();
|
||
|
var app = new Application("org.Ryujinx.UI.Ryujinx.UI", GLib.ApplicationFlags.None);
|
||
|
app.Register(GLib.Cancellable.Current);
|
||
|
|
||
|
var win = new MainWindow();
|
||
|
app.AddWindow(win);
|
||
|
|
||
|
win.Show();
|
||
|
Application.Run();
|
||
|
}
|
||
|
}
|
||
|
}
|