see a2185d9ef0 and 8a5921182e
This commit is contained in:
CasualPokePlayer 2023-11-16 09:14:25 -08:00
parent cef72bef4b
commit 7edba4962c
1 changed files with 5 additions and 1 deletions

View File

@ -182,7 +182,11 @@ namespace BizHawk.Client.EmuHawk
foreach (var lib in Libraries.Values)
{
lib.APIs = _apiContainer;
Debug.Assert(ServiceInjector.UpdateServices(newServiceProvider, lib, mayCache: true));
if (!ServiceInjector.UpdateServices(newServiceProvider, lib, mayCache: true))
{
throw new("Lua lib has required service(s) that can't be fulfilled");
}
lib.Restarted();
}
}