Sunshine master
Self-hosted game stream host for Moonlight.
nvprefs::driver_settings_t Class Reference

NVIDIA driver profile settings loaded for inspection or modification. More...

#include <src/platform/windows/nvprefs/driver_settings.h>

Public Member Functions

bool check_and_modify_application_profile (bool &modified)
 Compare and update Sunshine NVIDIA application profile settings.
 
bool check_and_modify_global_profile (std::optional< undo_data_t > &undo_data)
 Compare and update global NVIDIA profile settings.
 
void destroy ()
 Destroy the native resource owned by the wrapper.
 
bool init ()
 Load NVIDIA profile settings for the current driver state.
 
bool load_settings ()
 Load settings data from the backing API or store.
 
bool restore_global_profile_to_undo (const undo_data_t &undo_data)
 Restore global NVIDIA profile settings from undo data.
 
bool save_settings ()
 Save settings data through the backing API or store.
 

Detailed Description

NVIDIA driver profile settings loaded for inspection or modification.

Member Function Documentation

◆ check_and_modify_application_profile()

bool nvprefs::driver_settings_t::check_and_modify_application_profile ( bool & modified)

Compare and update Sunshine NVIDIA application profile settings.

Parameters
modifiedWhether NVIDIA driver settings were changed and need saving.
Returns
True when the NVIDIA driver-settings operation succeeds.

◆ check_and_modify_global_profile()

bool nvprefs::driver_settings_t::check_and_modify_global_profile ( std::optional< undo_data_t > & undo_data)

Compare and update global NVIDIA profile settings.

Parameters
undo_dataDriver settings captured before Sunshine modified them.
Returns
True when the NVIDIA driver-settings operation succeeds.

◆ init()

bool nvprefs::driver_settings_t::init ( )

Load NVIDIA profile settings for the current driver state.

Returns
True when the NVIDIA driver-settings operation succeeds.

◆ load_settings()

bool nvprefs::driver_settings_t::load_settings ( )

Load settings data from the backing API or store.

Returns
True when the NVIDIA driver-settings operation succeeds.

◆ restore_global_profile_to_undo()

bool nvprefs::driver_settings_t::restore_global_profile_to_undo ( const undo_data_t & undo_data)

Restore global NVIDIA profile settings from undo data.

Parameters
undo_dataDriver settings captured before Sunshine modified them.
Returns
True when the NVIDIA driver-settings operation succeeds.

◆ save_settings()

bool nvprefs::driver_settings_t::save_settings ( )

Save settings data through the backing API or store.

Returns
True when the NVIDIA driver-settings operation succeeds.

The documentation for this class was generated from the following files: