mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-27 18:54:04 +00:00
eee639d6ba
* .NET Core 3.0 is here!
* Remove IMemoryManager.cs and its references.
* Add T Math/F.FusedMultiplyAdd(T, T, T). Nits.
* Nit.
* Update appveyor.yml
* Revert "Resolve Visual Studio build issues"
This reverts commit 1772128ce0
.
* Update SvcTable.cs
34 lines
No EOL
886 B
C#
34 lines
No EOL
886 B
C#
using ARMeilleure.State;
|
|
using Ryujinx.HLE.HOS.Kernel.Process;
|
|
using System;
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
|
{
|
|
partial class SvcHandler
|
|
{
|
|
private Switch _device;
|
|
private KProcess _process;
|
|
private Horizon _system;
|
|
|
|
public SvcHandler(Switch device, KProcess process)
|
|
{
|
|
_device = device;
|
|
_process = process;
|
|
_system = device.System;
|
|
}
|
|
|
|
public void SvcCall(object sender, InstExceptionEventArgs e)
|
|
{
|
|
Action<SvcHandler, ExecutionContext> svcFunc = SvcTable.GetSvcFunc(e.Id);
|
|
|
|
if (svcFunc == null)
|
|
{
|
|
throw new NotImplementedException($"SVC 0x{e.Id:X4} is not implemented.");
|
|
}
|
|
|
|
ExecutionContext context = (ExecutionContext)sender;
|
|
|
|
svcFunc(this, context);
|
|
}
|
|
}
|
|
} |