mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-03 01:17:09 +02:00
Split main project into core,graphics and chocolarm4 subproject (#29)
This commit is contained in:
parent
9d21945ccf
commit
bf5ccf25b7
257 changed files with 415 additions and 285 deletions
|
@ -2,10 +2,11 @@
|
|||
// to the Public Domain.
|
||||
// It is provided "as is" without express or implied warranty of any kind.
|
||||
|
||||
using Gal;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using OpenTK.Graphics.OpenGL;
|
||||
using Ryujinx.Core;
|
||||
using Ryujinx.Graphics.Gal;
|
||||
using System;
|
||||
|
||||
namespace Ryujinx
|
||||
|
@ -346,7 +347,7 @@ void main(void) {
|
|||
};
|
||||
|
||||
//We just need one pair of JoyCon because it's emulate by the keyboard.
|
||||
Ns.Hid.SendControllerButtons(HidControllerID.CONTROLLER_HANDHELD, HidControllerLayouts.Main, CurrentButton, LeftJoystick, RightJoystick);
|
||||
Ns.SendControllerButtons(HidControllerID.CONTROLLER_HANDHELD, HidControllerLayouts.Main, CurrentButton, LeftJoystick, RightJoystick);
|
||||
}
|
||||
|
||||
protected override void OnRenderFrame(FrameEventArgs e)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using Gal;
|
||||
using Gal.OpenGL;
|
||||
using Ryujinx.Core;
|
||||
using Ryujinx.Graphics.Gal;
|
||||
using Ryujinx.Graphics.Gal.OpenGL;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
|
@ -27,20 +28,20 @@ namespace Ryujinx
|
|||
{
|
||||
Logging.Info("Loading as cart with RomFS.");
|
||||
|
||||
Ns.Os.LoadCart(args[0], RomFsFiles[0]);
|
||||
Ns.LoadCart(args[0], RomFsFiles[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logging.Info("Loading as cart WITHOUT RomFS.");
|
||||
|
||||
Ns.Os.LoadCart(args[0]);
|
||||
Ns.LoadCart(args[0]);
|
||||
}
|
||||
}
|
||||
else if (File.Exists(args[0]))
|
||||
{
|
||||
Logging.Info("Loading as homebrew.");
|
||||
|
||||
Ns.Os.LoadProgram(args[0]);
|
||||
Ns.LoadProgram(args[0]);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -58,7 +59,7 @@ namespace Ryujinx
|
|||
Screen.Run(60.0);
|
||||
}
|
||||
|
||||
Ns.Os.FinalizeAllProcesses();
|
||||
Ns.FinalizeAllProcesses();
|
||||
|
||||
Ns.Dispose();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue