Skip to content

Commit

Permalink
Updated Pipe
Browse files Browse the repository at this point in the history
- Pipe updated for new options
- Explained why I left logging disabled even if logs are disabled (Its to delete the log folder if logs are live disabled via the pipe)
  • Loading branch information
bud3699 committed Oct 27, 2024
1 parent 39ecdb0 commit 15c7136
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Virtual Display Driver (HDR)/MttVDD/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ void HandleClient(HANDLE hPipe) {
else if (wcsncmp(param, L"false", 5) == 0) {
UpdateXmlToggleSetting(false, L"logging");
logsEnabled = false;
vddlog("i", "Logging disabled");
vddlog("i", "Logging disabled"); // We can keep this here just to make it delete the logs on disable
}
}
else if (wcsncmp(buffer, L"HDRPLUS", 7) == 0) {
Expand Down Expand Up @@ -681,6 +681,32 @@ void HandleClient(HANDLE hPipe) {
ReloadDriver(hPipe);
}
}
else if (wcsncmp(buffer, L"PREVENTSPOOF", 12) == 0) {
wchar_t* param = buffer + 13;
if (wcsncmp(param, L"true", 4) == 0) {
UpdateXmlToggleSetting(true, L"PreventSpoof");
vddlog("i", "Prevent Spoof Enabled");
ReloadDriver(hPipe);
}
else if (wcsncmp(param, L"false", 5) == 0) {
UpdateXmlToggleSetting(false, L"PreventSpoof");
vddlog("i", "Prevent Spoof Disabled");
ReloadDriver(hPipe);
}
}
else if (wcsncmp(buffer, L"CEAOVERRIDE", 11) == 0) {
wchar_t* param = buffer + 12;
if (wcsncmp(param, L"true", 4) == 0) {
UpdateXmlToggleSetting(true, L"EdidCeaOverride");
vddlog("i", "Cea override Enabled");
ReloadDriver(hPipe);
}
else if (wcsncmp(param, L"false", 5) == 0) {
UpdateXmlToggleSetting(false, L"EdidCeaOverride");
vddlog("i", "Cea override Disabled");
ReloadDriver(hPipe);
}
}
else if (wcsncmp(buffer, L"HARDWARECURSOR", 14) == 0) {
wchar_t* param = buffer + 15;
if (wcsncmp(param, L"true", 4) == 0) {
Expand Down

0 comments on commit 15c7136

Please sign in to comment.