From 0d4c30d64ff1e1e29b64c6215ab7488d08349654 Mon Sep 17 00:00:00 2001 From: Bluzume <39113159+KuromeSan@users.noreply.github.com> Date: Mon, 18 Jan 2021 21:03:16 +1300 Subject: [PATCH] make it detect ocx and edge pepperflash --- DontTouchMyFlash/FlashPwner.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DontTouchMyFlash/FlashPwner.cs b/DontTouchMyFlash/FlashPwner.cs index 749d089..8834b4f 100644 --- a/DontTouchMyFlash/FlashPwner.cs +++ b/DontTouchMyFlash/FlashPwner.cs @@ -79,7 +79,7 @@ namespace DontTouchMyFlash String[] fileList = Directory.GetFiles(path, "*", SearchOption.AllDirectories); foreach (string file in fileList) { - if (file.EndsWith("*.ocx") || file.EndsWith(".dll") || file.EndsWith(".exe")) + if (file.ToLower().EndsWith(".ocx") || file.ToLower().EndsWith(".dll") || file.ToLower().EndsWith(".exe")) { CheckFileAndAdd(file); } @@ -120,9 +120,11 @@ namespace DontTouchMyFlash flashPath = Path.Combine(windir, "SysWOW64", "Macromed", "Flash"); ScanFolder(flashPath); - flashPath = Path.Combine(localappdata, "Google", "Chrome", "User Data", "PepperFlash"); ScanFolder(flashPath); + + flashPath = Path.Combine(localappdata, "Microsoft", "Edge", "User Data", "PepperFlash"); + ScanFolder(flashPath); } private void FlashPwner_Load(object sender, EventArgs e) {