aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Tamper/Operations/Block.cs
blob: 6d4b163739736e070fea81b612eae0d814e261c5 (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
27
using System.Collections.Generic;

namespace Ryujinx.HLE.HOS.Tamper.Operations
{
    class Block : IOperation
    {
        private readonly IEnumerable<IOperation> _operations;

        public Block(IEnumerable<IOperation> operations)
        {
            _operations = operations;
        }

        public Block(params IOperation[] operations)
        {
            _operations = operations;
        }

        public void Execute()
        {
            foreach (IOperation op in _operations)
            {
                op.Execute();
            }
        }
    }
}