Table of Contents

Method WithToolkitConfig_InitOption Deprecated

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

WithToolkitConfig_InitOption(MaaAgentServer, string, string) Deprecated

Initializes MaaToolkit option config.

[Obsolete("Use SetLogDirectory() or SetStdoutLevel() instead.", false)]
public static MaaAgentServer WithToolkitConfig_InitOption(this MaaAgentServer server, string userPath = "CurrentDirectory", string defaultJson = "{}")

Parameters

server MaaAgentServer
userPath string

The user path. Default is System.Environment.CurrentDirectory.

defaultJson string

The default config. Default is an empty json.

Returns

MaaAgentServer