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);
61 undo_file_t() =
default;
Serializable NVIDIA profile state saved before preference changes.
Definition undo_data.h:18
static std::optional< undo_file_t > create_new_file(std::filesystem::path file_path)
Create new file.
Definition undo_file.cpp:64
bool write_undo_data(const undo_data_t &undo_data)
Write undo data.
Definition undo_file.cpp:93
bool delete_file()
Delete the persisted NVIDIA settings undo file.
Definition undo_file.cpp:79
std::optional< undo_data_t > read_undo_data()
Read undo data.
Definition undo_file.cpp:123
static std::optional< undo_file_t > open_existing_file(std::filesystem::path file_path, bool &access_denied)
Open existing file.
Definition undo_file.cpp:51
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.