mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 08:56:24 +02:00
HLE: misc: throw a more descriptive error when the loaded processes doesn't contain _latestPid (likely missing FW)
This commit is contained in:
parent
fd4d801bfd
commit
017f46f318
3 changed files with 45 additions and 7 deletions
|
@ -26,7 +26,17 @@ namespace Ryujinx.HLE.Loaders.Processes
|
|||
|
||||
private ulong _latestPid;
|
||||
|
||||
public ProcessResult ActiveApplication => _processesByPid[_latestPid];
|
||||
public ProcessResult ActiveApplication
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!_processesByPid.TryGetValue(_latestPid, out ProcessResult value))
|
||||
throw new RyujinxException(
|
||||
$"The HLE Process map did not have a process with ID {_latestPid}. Are you missing firmware?");
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
public ProcessLoader(Switch device)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue