mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-01-13 10:21:56 -08: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 1772128ce0fc058e6280001aace3a77a7a96897b. * Update SvcTable.cs
34 lines
886 B
C#
34 lines
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);
|
|
}
|
|
}
|
|
} |