28 static std::optional<undo_file_t>
open_existing_file(std::filesystem::path file_path,
bool &access_denied);
36 static std::optional<undo_file_t>
create_new_file(std::filesystem::path file_path);
Serializable NVIDIA profile state saved before preference changes.
Definition undo_data.h:18
File-backed storage for NVIDIA preference undo data.
Definition undo_file.h:19
static std::optional< undo_file_t > create_new_file(std::filesystem::path file_path)
Create new file.
Definition undo_file.cpp:65
bool write_undo_data(const undo_data_t &undo_data)
Write undo data.
Definition undo_file.cpp:94
bool delete_file()
Delete the persisted NVIDIA settings undo file.
Definition undo_file.cpp:80
std::optional< undo_data_t > read_undo_data()
Read undo data.
Definition undo_file.cpp:125
static std::optional< undo_file_t > open_existing_file(std::filesystem::path file_path, bool &access_denied)
Open existing file.
Definition undo_file.cpp:52
Declarations for common nvidia preferences.
Owning Windows HANDLE wrapper that closes handles automatically.
Definition nvprefs_common.h:22
Declarations for undoing changes to nvidia preferences.