Leave some comments in `LuaConsole.InputBox_KeyDown`

This commit is contained in:
James Groom 2024-04-27 12:15:10 +00:00 committed by GitHub
parent 6ed83ed7a0
commit df0ae2c2d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1381,10 +1381,10 @@ namespace BizHawk.Client.EmuHawk
var rawCommand = InputBox.Text;
InputBox.Clear();
InputBox.Refresh(); // if the command is something like `client.seekframe`, the Lua Console (and MainForm) will freeze until it finishes, so at least make it obvious that the Enter press was received
// TODO: Maybe make these try-catches more general
// TODO: Maybe make these try-catches more general // what try-catches? LuaSandbox.Sandbox? --yoshi
if (!string.IsNullOrWhiteSpace(rawCommand))
{
if (rawCommand.Contains("emu.frameadvance("))
if (rawCommand.Contains("emu.frameadvance(")) //TODO this is pitiful; do it properly with a flag like the one we use for rom loads --yoshi
{
WriteLine("emu.frameadvance() can not be called from the console");
return;