Function MaaResourceSetOption

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

@brief Set options for a given resource.

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

@param res The handle of the resource to set options for. @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.