Skip to content

Commit 15c7136

Browse files
author
Bud
committed
Updated Pipe
- 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)
1 parent 39ecdb0 commit 15c7136

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

Virtual Display Driver (HDR)/MttVDD/Driver.cpp

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ void HandleClient(HANDLE hPipe) {
639639
else if (wcsncmp(param, L"false", 5) == 0) {
640640
UpdateXmlToggleSetting(false, L"logging");
641641
logsEnabled = false;
642-
vddlog("i", "Logging disabled");
642+
vddlog("i", "Logging disabled"); // We can keep this here just to make it delete the logs on disable
643643
}
644644
}
645645
else if (wcsncmp(buffer, L"HDRPLUS", 7) == 0) {
@@ -681,6 +681,32 @@ void HandleClient(HANDLE hPipe) {
681681
ReloadDriver(hPipe);
682682
}
683683
}
684+
else if (wcsncmp(buffer, L"PREVENTSPOOF", 12) == 0) {
685+
wchar_t* param = buffer + 13;
686+
if (wcsncmp(param, L"true", 4) == 0) {
687+
UpdateXmlToggleSetting(true, L"PreventSpoof");
688+
vddlog("i", "Prevent Spoof Enabled");
689+
ReloadDriver(hPipe);
690+
}
691+
else if (wcsncmp(param, L"false", 5) == 0) {
692+
UpdateXmlToggleSetting(false, L"PreventSpoof");
693+
vddlog("i", "Prevent Spoof Disabled");
694+
ReloadDriver(hPipe);
695+
}
696+
}
697+
else if (wcsncmp(buffer, L"CEAOVERRIDE", 11) == 0) {
698+
wchar_t* param = buffer + 12;
699+
if (wcsncmp(param, L"true", 4) == 0) {
700+
UpdateXmlToggleSetting(true, L"EdidCeaOverride");
701+
vddlog("i", "Cea override Enabled");
702+
ReloadDriver(hPipe);
703+
}
704+
else if (wcsncmp(param, L"false", 5) == 0) {
705+
UpdateXmlToggleSetting(false, L"EdidCeaOverride");
706+
vddlog("i", "Cea override Disabled");
707+
ReloadDriver(hPipe);
708+
}
709+
}
684710
else if (wcsncmp(buffer, L"HARDWARECURSOR", 14) == 0) {
685711
wchar_t* param = buffer + 15;
686712
if (wcsncmp(param, L"true", 4) == 0) {

0 commit comments

Comments
 (0)