aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Loaders/Executables/NroExecutable.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-12-13 04:30:27 -0300
committerGitHub <noreply@github.com>2020-12-13 08:30:27 +0100
commit19d18662ea3ed5470898ed2b7bbb06d45f6004dd (patch)
tree21ceeba0aee0fca1729ced4cf7c86bd9c7ff7ad2 /Ryujinx.HLE/Loaders/Executables/NroExecutable.cs
parentef157bbe263e60b2e9c3259e5aee20a297c5f5bc (diff)
Correct type of executable sizes (#1802)
Diffstat (limited to 'Ryujinx.HLE/Loaders/Executables/NroExecutable.cs')
-rw-r--r--Ryujinx.HLE/Loaders/Executables/NroExecutable.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/Ryujinx.HLE/Loaders/Executables/NroExecutable.cs b/Ryujinx.HLE/Loaders/Executables/NroExecutable.cs
index b7a887b7..7a9d04ec 100644
--- a/Ryujinx.HLE/Loaders/Executables/NroExecutable.cs
+++ b/Ryujinx.HLE/Loaders/Executables/NroExecutable.cs
@@ -7,18 +7,18 @@ namespace Ryujinx.HLE.Loaders.Executables
class NroExecutable : Nro, IExecutable
{
public byte[] Program { get; }
- public Span<byte> Text => Program.AsSpan().Slice(TextOffset, (int)Header.NroSegments[0].Size);
- public Span<byte> Ro => Program.AsSpan().Slice(RoOffset, (int)Header.NroSegments[1].Size);
- public Span<byte> Data => Program.AsSpan().Slice(DataOffset, (int)Header.NroSegments[2].Size);
+ public Span<byte> Text => Program.AsSpan().Slice((int)TextOffset, (int)Header.NroSegments[0].Size);
+ public Span<byte> Ro => Program.AsSpan().Slice((int)RoOffset, (int)Header.NroSegments[1].Size);
+ public Span<byte> Data => Program.AsSpan().Slice((int)DataOffset, (int)Header.NroSegments[2].Size);
- public int TextOffset => (int)Header.NroSegments[0].FileOffset;
- public int RoOffset => (int)Header.NroSegments[1].FileOffset;
- public int DataOffset => (int)Header.NroSegments[2].FileOffset;
- public int BssOffset => DataOffset + Data.Length;
- public int BssSize => (int)Header.BssSize;
+ public uint TextOffset => Header.NroSegments[0].FileOffset;
+ public uint RoOffset => Header.NroSegments[1].FileOffset;
+ public uint DataOffset => Header.NroSegments[2].FileOffset;
+ public uint BssOffset => DataOffset + (uint)Data.Length;
+ public uint BssSize => Header.BssSize;
- public int Mod0Offset => Start.Mod0Offset;
- public int FileSize => (int)Header.Size;
+ public uint Mod0Offset => (uint)Start.Mod0Offset;
+ public uint FileSize => Header.Size;
public ulong SourceAddress { get; private set; }
public ulong BssAddress { get; private set; }