Table of Contents

Method WithToolkitConfig_InitOption

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

WithToolkitConfig_InitOption(MaaAgentServer, string, string)

Initializes MaaToolkit option config.

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