Preset.renamePreset

bool renamePreset(string oldName, string newName)

Renames a preset. If there is already a preset by the new_name it will be overwritten.

Parameters

oldNamecurrent preset name
newNamenew preset name

Returns

true for success, false if e.g. there is no preset with old_name