carb::settings::setStringArray
Defined in carb/settings/SettingsUtils.h
-
inline void carb::settings::setStringArray(ISettings *settings, const char *path, const std::vector<std::string> &array)
A helper function for setting a
std::vector<bool>
as an array of strings.Note
array
is first converted to an array ofconst char*
on the stack and then passed in to ISettings::setStringArray. If the stack is particularly small andarray
is particularly large, stack space may be exceeded. In this case, it is advised to call ISettings::setStringArray directly.- Parameters
settings – The acquired ISettings interface.
path – The setting key path. See ISettings::setStringArray for details.
array – A vector containing the bool values for the setting value.