Sunshine
latest
Self-hosted game stream host for Moonlight.
Toggle main menu visibility
nvprefs_interface.h
Go to the documentation of this file.
1
5
#pragma once
6
7
// standard includes
8
#include <memory>
9
10
namespace
nvprefs {
11
15
class
nvprefs_interface {
16
public
:
17
nvprefs_interface();
18
~nvprefs_interface();
19
25
bool
load
();
26
30
void
unload
();
31
37
bool
restore_from_and_delete_undo_file_if_exists
();
38
44
bool
modify_application_profile
();
45
51
bool
modify_global_profile
();
52
58
bool
owning_undo_file
();
59
65
bool
restore_global_profile
();
66
67
private
:
68
struct
impl
;
69
std::unique_ptr<impl> pimpl;
70
};
71
72
}
// namespace nvprefs
nvprefs::nvprefs_interface::unload
void unload()
Release loaded NVIDIA preference state.
Definition
nvprefs_interface.cpp:66
nvprefs::nvprefs_interface::owning_undo_file
bool owning_undo_file()
Check whether this interface owns the active undo file.
Definition
nvprefs_interface.cpp:197
nvprefs::nvprefs_interface::restore_global_profile
bool restore_global_profile()
Restore NVIDIA global profile settings from saved undo data.
Definition
nvprefs_interface.cpp:201
nvprefs::nvprefs_interface::restore_from_and_delete_undo_file_if_exists
bool restore_from_and_delete_undo_file_if_exists()
Restore NVIDIA settings from the undo file, then remove it.
Definition
nvprefs_interface.cpp:74
nvprefs::nvprefs_interface::modify_application_profile
bool modify_application_profile()
Apply Sunshine-specific NVIDIA application profile changes.
Definition
nvprefs_interface.cpp:106
nvprefs::nvprefs_interface::load
bool load()
Load persisted state from its backing store.
Definition
nvprefs_interface.cpp:45
nvprefs::nvprefs_interface::modify_global_profile
bool modify_global_profile()
Apply Sunshine-specific NVIDIA global profile changes.
Definition
nvprefs_interface.cpp:130
nvprefs::nvprefs_interface::impl
Private state owned by the NVIDIA preferences interface.
Definition
nvprefs_interface.cpp:25
src
platform
windows
nvprefs
nvprefs_interface.h
Generated by
1.18.0