Fix `BootGodDb.Identify` mutating lookup

fixes f010d6f80, 633216be1
This commit is contained in:
YoshiRulz 2024-08-23 16:45:44 +10:00
parent 8c9587e00b
commit fc446868a7
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
#else
if (acquire == null) throw new InvalidOperationException("Bootgod DB not initialized. It's a client responsibility because only a client knows where the database is located.");
acquire.WaitOne();
return instance._sha1Table.GetValueOrPutNew(sha1);
return instance._sha1Table.TryGetValue(sha1, out var l) ? l : new(capacity: 0);
#endif
}
}