Modify and restore NVIDIA control panel settings
Namely: - Power profile for sunshine.exe - Global OpenGL/Vulkan DXGI swapchain
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user