Disable lua script if loading fails

This commit is contained in:
kalimag 2022-11-27 19:54:08 +01:00 committed by James Groom
parent bd53807b0f
commit cf2b83b102
1 changed files with 1 additions and 0 deletions

View File

@ -909,6 +909,7 @@ namespace BizHawk.Client.EmuHawk
}
catch (IOException)
{
item.State = LuaFile.RunState.Disabled;
WriteLine($"Unable to access file {item.Path}");
}
catch (Exception ex)