mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 03:16:23 +02:00
Null pointer fix
This commit is contained in:
parent
4ffb0ff617
commit
27312d4f31
3 changed files with 10 additions and 4 deletions
|
@ -321,6 +321,9 @@ namespace Ryujinx.Headless.SDL2
|
|||
var stream = OpenFile(descriptor);
|
||||
|
||||
var gameInfo = GetGameInfo(stream, extension);
|
||||
if (gameInfo == null) {
|
||||
return new GameInfoNative(0, "", "", "", "", new byte[0]);
|
||||
}
|
||||
|
||||
return new GameInfoNative(
|
||||
(ulong)gameInfo.FileSize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue