mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 10:05:25 +00:00
27 lines
542 B
C#
27 lines
542 B
C#
|
namespace Ryujinx.HLE.HOS.Tamper.Operations
|
||
|
{
|
||
|
class OpProcCtrl : IOperation
|
||
|
{
|
||
|
private ITamperedProcess _process;
|
||
|
private bool _pause;
|
||
|
|
||
|
public OpProcCtrl(ITamperedProcess process, bool pause)
|
||
|
{
|
||
|
_process = process;
|
||
|
_pause = pause;
|
||
|
}
|
||
|
|
||
|
public void Execute()
|
||
|
{
|
||
|
if (_pause)
|
||
|
{
|
||
|
_process.PauseProcess();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
_process.ResumeProcess();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|