Sunshine latest
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 init();
25
26 void destroy();
27
28 bool load_settings();
29
30 bool save_settings();
31
32 bool restore_global_profile_to_undo(const undo_data_t &undo_data);
33
34 bool check_and_modify_global_profile(std::optional<undo_data_t> &undo_data);
35
36 bool check_and_modify_application_profile(bool &modified);
37
38 private:
39 NvDRSSessionHandle session_handle = 0;
40 };
41
42} // namespace nvprefs
Definition driver_settings.h:20
Definition undo_data.h:15
Declarations for undoing changes to nvidia preferences.