Sunshine v2025.118.151840
Self-hosted game stream host for Moonlight.
driver_settings.h
Go to the documentation of this file.
1
5#pragma once
6
7// nvapi headers
8// disable clang-format header reordering
9// as <NvApiDriverSettings.h> needs types from <nvapi.h>
10// clang-format off
11#include <nvapi.h>
12#include <NvApiDriverSettings.h>
13// clang-format on
14
15// local includes
16#include "undo_data.h"
17
18namespace nvprefs {
19
21 public:
23
24 bool
25 init();
26
27 void
28 destroy();
29
30 bool
31 load_settings();
32
33 bool
34 save_settings();
35
36 bool
37 restore_global_profile_to_undo(const undo_data_t &undo_data);
38
39 bool
40 check_and_modify_global_profile(std::optional<undo_data_t> &undo_data);
41
42 bool
43 check_and_modify_application_profile(bool &modified);
44
45 private:
46 NvDRSSessionHandle session_handle = 0;
47 };
48
49} // namespace nvprefs
Definition driver_settings.h:20
Definition undo_data.h:15
Declarations for undoing changes to nvidia preferences.