Function MaaSetGlobalOption

Source
pub unsafe extern "C" fn MaaSetGlobalOption(
    key: MaaGlobalOption,
    value: MaaOptionValue,
    val_size: MaaOptionValueSize,
) -> MaaBool
Available on crate feature internal only.
Expand description

@brief Set options globally.

This function requires a given set of option keys and value types, otherwise this will fail. See #MaaGlobalOptionEnum for details.

@param key The option key. @param value The option value. @param val_size The size of the option value. @return MaaBool Whether the option is set successfully.