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