aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Tamper/Operations/OpProcCtrl.cs
blob: 5de225a196c718901ca83a2ef622ade54f0c7b62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace Ryujinx.HLE.HOS.Tamper.Operations
{
    class OpProcCtrl : IOperation
    {
        private readonly ITamperedProcess _process;
        private readonly bool _pause;

        public OpProcCtrl(ITamperedProcess process, bool pause)
        {
            _process = process;
            _pause = pause;
        }

        public void Execute()
        {
            if (_pause)
            {
                _process.PauseProcess();
            }
            else
            {
                _process.ResumeProcess();
            }
        }
    }
}