aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/Loaders/Executable.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-02-21 18:56:52 -0300
committergdkchan <gab.dark.100@gmail.com>2018-02-21 18:56:52 -0300
commitb2f733da7839ff8ba7a70a529cb9eb3eea9f0af6 (patch)
tree2ed5913d93ecf3deeabfe706934b57ee6f2309b6 /Ryujinx.Core/Loaders/Executable.cs
parent3696255457dce06111ce5a07544d30239366ebf6 (diff)
FspSrv improvements, also fix ImageEnd for NROs without a MOD0 section
Diffstat (limited to 'Ryujinx.Core/Loaders/Executable.cs')
-rw-r--r--Ryujinx.Core/Loaders/Executable.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Ryujinx.Core/Loaders/Executable.cs b/Ryujinx.Core/Loaders/Executable.cs
index 6a6073ef..e2660838 100644
--- a/Ryujinx.Core/Loaders/Executable.cs
+++ b/Ryujinx.Core/Loaders/Executable.cs
@@ -26,7 +26,12 @@ namespace Ryujinx.Core.Loaders
if (Exe.Mod0Offset == 0)
{
- MapBss(ImageBase + Exe.DataOffset + Exe.Data.Count, Exe.BssSize);
+ int BssOffset = Exe.DataOffset + Exe.Data.Count;
+ int BssSize = Exe.BssSize;
+
+ MapBss(ImageBase + BssOffset, BssSize);
+
+ ImageEnd = ImageBase + BssOffset + BssSize;
return;
}