mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
console: add public interface
This commit is contained in:
parent
fabc78b6d4
commit
02022599e5
3 changed files with 306 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ internal partial class ConsoleManager : IServiceType
|
|||
return false;
|
||||
|
||||
var entryName = matches[0].Value;
|
||||
if (string.IsNullOrEmpty(entryName) || entryName.Any(x => x == ' '))
|
||||
if (string.IsNullOrEmpty(entryName) || entryName.Any(char.IsWhiteSpace))
|
||||
{
|
||||
Log.Error("No valid command specified");
|
||||
return false;
|
||||
|
|
@ -419,7 +419,7 @@ internal partial class ConsoleManager : IServiceType
|
|||
/// </summary>
|
||||
private class ConsoleCommand : ConsoleEntry, IConsoleCommand
|
||||
{
|
||||
private Delegate func;
|
||||
private readonly Delegate func;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ConsoleCommand"/> class.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue