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
+29
View File
@@ -0,0 +1,29 @@
#pragma once
#include "undo_data.h"
namespace nvprefs {
class undo_file_t {
public:
static std::optional<undo_file_t>
open_existing_file(std::filesystem::path file_path, bool &access_denied);
static std::optional<undo_file_t>
create_new_file(std::filesystem::path file_path);
bool
delete_file();
bool
write_undo_data(const undo_data_t &undo_data);
std::optional<undo_data_t>
read_undo_data();
private:
undo_file_t() = default;
safe_handle file_handle;
};
} // namespace nvprefs