aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/Loaders/Executables/IExecutable.cs
blob: f6aa31aca20c8607c14e8701bc7e6805a3d9c12a (plain)
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
using System.Collections.ObjectModel;

namespace Ryujinx.Core.Loaders.Executables
{
    public enum Extensions
    {
        NRO,
        NSO
    }

    public interface IExecutable
    {
        ReadOnlyCollection<byte> Text { get; }
        ReadOnlyCollection<byte> RO   { get; }
        ReadOnlyCollection<byte> Data { get; }

        int Mod0Offset { get; }
        int TextOffset { get; }
        int ROOffset   { get; }
        int DataOffset { get; }
        int BssSize    { get; }

        Extensions Extension  { get; }
    }
}