Oops
This commit is contained in:
parent
bac7ba9a5d
commit
9d7c92fb6e
|
@ -88,6 +88,25 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[LuaMethodAttributes(
|
||||||
|
"writeline",
|
||||||
|
"Outputs the given object to the output box on the Lua Console dialog. Note: Can accept a LuaTable"
|
||||||
|
)]
|
||||||
|
public static void WriteLine(params object[] outputs)
|
||||||
|
{
|
||||||
|
Log(outputs);
|
||||||
|
Log('\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
[LuaMethodAttributes(
|
||||||
|
"write",
|
||||||
|
"Outputs the given object to the output box on the Lua Console dialog. Note: Can accept a LuaTable"
|
||||||
|
)]
|
||||||
|
public static void Write(params object[] outputs)
|
||||||
|
{
|
||||||
|
Log(outputs);
|
||||||
|
}
|
||||||
|
|
||||||
// Single param version is used by logOutputCallback of some libraries.
|
// Single param version is used by logOutputCallback of some libraries.
|
||||||
public static void Log(string output)
|
public static void Log(string output)
|
||||||
{
|
{
|
||||||
|
|
|
@ -334,7 +334,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
OutputBox.Invoke(() =>
|
OutputBox.Invoke(() =>
|
||||||
{
|
{
|
||||||
OutputBox.Text += message + "\n";
|
OutputBox.Text += message;
|
||||||
OutputBox.SelectionStart = OutputBox.Text.Length;
|
OutputBox.SelectionStart = OutputBox.Text.Length;
|
||||||
OutputBox.ScrollToCaret();
|
OutputBox.ScrollToCaret();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue