Table of Contents

Method InitOption

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

InitOption(string, string)

Initializes MaaToolkit option config.

bool InitOption(string userPath = "CurrentDirectory", string defaultJson = "{}")

Parameters

userPath string

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

defaultJson string

The default config. Default is an empty json.

Returns

bool

true if the option config was initialized successfully; otherwise, false.