0
0
Fork 0

Fix wrong assignment and allow null FilePaths on Executable

This commit is contained in:
gdkchan 2018-07-17 17:28:41 -03:00
parent 571848536b
commit 98223b0e7d
2 changed files with 6 additions and 2 deletions

View file

@ -31,7 +31,11 @@ namespace Ryujinx.HLE.Loaders
FilePath = Exe.FilePath; FilePath = Exe.FilePath;
Name = Path.GetFileNameWithoutExtension(FilePath.Replace(Homebrew.TemporaryNroSuffix, "")); if (FilePath != null)
{
Name = Path.GetFileNameWithoutExtension(FilePath.Replace(Homebrew.TemporaryNroSuffix, ""));
}
this.Memory = Memory; this.Memory = Memory;
this.ImageBase = ImageBase; this.ImageBase = ImageBase;
this.ImageEnd = ImageBase; this.ImageEnd = ImageBase;

View file

@ -29,7 +29,7 @@ namespace Ryujinx.HLE.Loaders.Executables
HasDataHash = 1 << 5 HasDataHash = 1 << 5
} }
public Nso(Stream Input, string Name) public Nso(Stream Input, string FilePath)
{ {
this.FilePath = FilePath; this.FilePath = FilePath;