aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Tamper/Operations/OpProcCtrl.cs
blob: 1b89f450762b3e87e2bc497be5a714900fb874c6 (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 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();
            }
        }
    }
}