Merge branch 'fix-kaddressarbiter-crash' into 'master'

Fix kaddressarbiter crash

See merge request [ryubing/ryujinx!235](https://git.ryujinx.app/ryubing/ryujinx/-/merge_requests/235)
This commit is contained in:
LotP 2025-12-06 20:16:15 -06:00
commit ee202e1410
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -100,6 +100,7 @@ DocProject/Help/html
# Click-Once directory
publish/
RyubingMaintainerTools/
# Publish Web Output
*.Publish.xml

View File

@ -529,7 +529,13 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
// The value is decremented if the number of threads waiting is less
// or equal to the Count of threads to be signaled, or Count is zero
// or negative. It is incremented if there are no threads waiting.
int waitingCount = _arbiterThreads[address].Count;
int waitingCount = 0;
if (_arbiterThreads.TryGetValue(address, out List<KThread> threads))
{
waitingCount = threads.Count;
}
if (waitingCount > 0)
{