mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-14 22:50:34 +00:00
35 lines
915 B
C#
35 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();
|
|
}
|
|
}
|
|
}
|