rtx::setDefaultBoolEx

Defined in omni/extras/RtxSettings.h

inline bool rtx::setDefaultBoolEx(carb::settings::ISettings *settings, const char *path, bool value)

A helper function that atomically sets the setting value at path if and only if it doesn’t exist.

Parameters
  • settings – carb::settings::ISettings as if by carb::getCachedInterface()

  • path – The settings path to check

  • value – The value to write to path if it doesn’t exist

Return values
  • true – The value did not exist and was atomically set to value

  • false – The value already existed and was not set