Table of Contents

Method SetOption_SaveOnError

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetOption_SaveOnError(IMaaOption<GlobalOption>?, bool)

Whether to save screenshot on error

public static bool SetOption_SaveOnError(this IMaaOption<GlobalOption>? opt, bool value)

Parameters

opt IMaaOption<GlobalOption>?

The option.

value bool

The value.

Returns

bool

true if the option was set successfully; otherwise, false.

Remarks

value: bool, eg: true; val_size: sizeof(bool)

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.