From f010d6f8024c698c5c7c25e105a67cc305e933a3 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Thu, 22 Aug 2024 22:54:21 +0200 Subject: [PATCH] Fix bootgod exception on missing game hash fixes 633216be143fe997624ab16505a5be49265dcaeb --- src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/BootGodDB.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/BootGodDB.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/BootGodDB.cs index a594b3e94b..969c95f157 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/BootGodDB.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/BootGodDB.cs @@ -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[sha1]; + return instance._sha1Table.GetValueOrPutNew(sha1); #endif } }