FspSrv improvements, also fix ImageEnd for NROs without a MOD0 section

This commit is contained in:
gdkchan 2018-02-21 18:56:52 -03:00
parent 3696255457
commit b2f733da78
14 changed files with 408 additions and 196 deletions

View file

@ -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;
}