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

High-level NVIDIA profile preferences interface with undo support. More...

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

Classes

struct  impl
 Private state owned by the NVIDIA preferences interface. More...
 

Public Member Functions

bool load ()
 Load persisted state from its backing store.
 
bool modify_application_profile ()
 Apply Sunshine-specific NVIDIA application profile changes.
 
bool modify_global_profile ()
 Apply Sunshine-specific NVIDIA global profile changes.
 
bool owning_undo_file ()
 Check whether this interface owns the active undo file.
 
bool restore_from_and_delete_undo_file_if_exists ()
 Restore NVIDIA settings from the undo file, then remove it.
 
bool restore_global_profile ()
 Restore NVIDIA global profile settings from saved undo data.
 
void unload ()
 Release loaded NVIDIA preference state.
 

Detailed Description

High-level NVIDIA profile preferences interface with undo support.

Member Function Documentation

◆ load()

bool nvprefs::nvprefs_interface::load ( )

Load persisted state from its backing store.

Returns
True when the NVIDIA preferences operation succeeds.

◆ modify_application_profile()

bool nvprefs::nvprefs_interface::modify_application_profile ( )

Apply Sunshine-specific NVIDIA application profile changes.

Returns
True when the NVIDIA preferences operation succeeds.

◆ modify_global_profile()

bool nvprefs::nvprefs_interface::modify_global_profile ( )

Apply Sunshine-specific NVIDIA global profile changes.

Returns
True when the NVIDIA preferences operation succeeds.

◆ owning_undo_file()

bool nvprefs::nvprefs_interface::owning_undo_file ( )

Check whether this interface owns the active undo file.

Returns
True when the NVIDIA preferences operation succeeds.

◆ restore_from_and_delete_undo_file_if_exists()

bool nvprefs::nvprefs_interface::restore_from_and_delete_undo_file_if_exists ( )

Restore NVIDIA settings from the undo file, then remove it.

Returns
True when the NVIDIA preferences operation succeeds.

◆ restore_global_profile()

bool nvprefs::nvprefs_interface::restore_global_profile ( )

Restore NVIDIA global profile settings from saved undo data.

Returns
True when the NVIDIA preferences operation succeeds.

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