Make Lua `onqueryitemtext` more resilient (resolves #3897)
This commit is contained in:
parent
45e2307a7b
commit
1ff7d54511
|
@ -511,11 +511,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (Engaged())
|
||||
{
|
||||
Tastudio.QueryItemTextCallback = (index, name) =>
|
||||
{
|
||||
var result = luaf.Call(index, name);
|
||||
return result?[0]?.ToString();
|
||||
};
|
||||
Tastudio.QueryItemTextCallback = (index, name) => luaf.Call(index, name)?.FirstOrDefault()?.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue