Null pointer fix

This commit is contained in:
Daniil Vinogradov 2025-02-15 18:46:02 +01:00
parent 4ffb0ff617
commit 27312d4f31
3 changed files with 10 additions and 4 deletions

View file

@ -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,