From de8d195efadd589d352b714f11c4d2fca87084c7 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sun, 16 Nov 2025 15:32:12 +0700 Subject: [PATCH] Add check for Hardware Sniffer availability --- OpCore-Simplify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpCore-Simplify.py b/OpCore-Simplify.py index 15194d6..3764f80 100644 --- a/OpCore-Simplify.py +++ b/OpCore-Simplify.py @@ -47,12 +47,15 @@ class OCPE: print("Q. Quit") print("") - user_input = self.u.request_input("Drag and drop your hardware report here (.JSON) or type \"E\" to export: ") + user_input = self.u.request_input("Drag and drop your hardware report here (.JSON){}: ".format(" or type \"E\" to export" if os.name == "nt" else "")) if user_input.lower() == "q": self.u.exit_program() if user_input.lower() == "e": hardware_sniffer = self.o.gather_hardware_sniffer() + if not hardware_sniffer: + continue + report_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "SysReport") self.u.head("Exporting Hardware Report")