www
This commit is contained in:
HelenWalker committed 2026-03-08 16:19:24 -06:00
1 parent 3933cd1901
commit 0aa65c433d
98 files changed
+56670

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
#include "PreventScreenshot.h"
#include "helpers.h"
PreventScreenshotModule::PreventScreenshotModule()
: BaseModule("PreventScreenshot", "Prevent Screenshot", ModuleCategory::Visual) {}
void PreventScreenshotModule::RegisterTab() {
}
void PreventScreenshotModule::Render() {
if (!ImGui::CollapsingHeader(Tr("Prevent Screenshot"), ImGuiTreeNodeFlags_DefaultOpen)) {
return;
}
bool enabled = Enabled();
if (ImGui::Checkbox(Tr("ON / OFF"), &enabled)) {
SetEnabled(enabled);
}
}
void PreventScreenshotModule::Update() {
if (!g_Runtime.overlay_hwnd) {
return;
}
const DWORD affinity = Enabled()
? (IsWindowsBuildAtLeast(19041) ? 0x11u : 0x1u)
: 0u;
SetWindowDisplayAffinity(g_Runtime.overlay_hwnd, affinity);
}