Fix bootgod exception on missing game hash

fixes 633216be14
This commit is contained in:
Morilli 2024-08-22 22:54:21 +02:00
parent 7dfb624427
commit f010d6f802
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
#else #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."); 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(); acquire.WaitOne();
return instance._sha1Table[sha1]; return instance._sha1Table.GetValueOrPutNew(sha1);
#endif #endif
} }
} }