Modify and restore NVIDIA control panel settings

Namely:
- Power profile for sunshine.exe
- Global OpenGL/Vulkan DXGI swapchain
This commit is contained in:
ns6089
2023-07-02 13:01:29 +03:00
committed by Cameron Gutman
parent 6992d424a8
commit f245f777f7
15 changed files with 1174 additions and 4 deletions
@@ -0,0 +1,36 @@
#pragma once
namespace nvprefs {
class nvprefs_interface {
public:
nvprefs_interface();
~nvprefs_interface();
bool
load();
void
unload();
bool
restore_from_and_delete_undo_file_if_exists();
bool
modify_application_profile();
bool
modify_global_profile();
bool
owning_undo_file();
bool
restore_global_profile();
private:
struct impl;
std::unique_ptr<impl> pimpl;
};
} // namespace nvprefs