Sunshine master
Self-hosted game stream host for Moonlight.
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
16 public:
19
25 bool load();
26
30 void unload();
31
38
45
52
58 bool owning_undo_file();
59
66
67 private:
68 struct impl;
69 std::unique_ptr<impl> pimpl;
70 };
71
72} // namespace nvprefs
High-level NVIDIA profile preferences interface with undo support.
Definition nvprefs_interface.h:15
void unload()
Release loaded NVIDIA preference state.
Definition nvprefs_interface.cpp:66
bool owning_undo_file()
Check whether this interface owns the active undo file.
Definition nvprefs_interface.cpp:197
bool restore_global_profile()
Restore NVIDIA global profile settings from saved undo data.
Definition nvprefs_interface.cpp:201
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:45
bool modify_global_profile()
Apply Sunshine-specific NVIDIA global profile changes.
Definition nvprefs_interface.cpp:130
Private state owned by the NVIDIA preferences interface.
Definition nvprefs_interface.cpp:25