Skip to content

Commit

Permalink
Fix an NRE when getting the version string
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Apr 5, 2023
1 parent 7e1ecd9 commit 9694eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ryujinx.HLE/Loaders/Processes/ProcessResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public bool Start(Switch device)
}

// TODO: LibHac npdm currently doesn't support version field.
string version = ProgramId > 0x0100000000007FFF ? DisplayVersion : device.System.ContentManager.GetCurrentFirmwareVersion().VersionString;
string version = ProgramId > 0x0100000000007FFF ? DisplayVersion : device.System.ContentManager.GetCurrentFirmwareVersion()?.VersionString ?? "?";

Logger.Info?.Print(LogClass.Loader, $"Application Loaded: {Name} v{version} [{ProgramIdText}] [{(Is64Bit ? "64-bit" : "32-bit")}]");

return true;
}
}
}
}

0 comments on commit 9694eb0

Please sign in to comment.