pub unsafe extern "C" fn MaaSetOption(
inst: MaaInstanceHandle,
key: MaaInstOption,
value: MaaOptionValue,
val_size: MaaOptionValueSize,
) -> MaaBoolAvailable on crate feature
internal only.Expand description
@brief Set options for a given instance.
This function requires a given set of option keys and value types, otherwise this will fail. See #MaaInstOptionEnum for details.
@param inst The handle of the instance 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.