From 0681e80948cb928ad5af650b8dc98489c9240b21 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Mon, 12 Feb 2024 22:42:05 +0100 Subject: [PATCH] Add: additional entry with summary of video-info brand (#33) --- analysis/__main__.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/analysis/__main__.py b/analysis/__main__.py index 50bdedf..77b995e 100644 --- a/analysis/__main__.py +++ b/analysis/__main__.py @@ -92,6 +92,7 @@ def summarize_setting(summary, version, seconds, path, data): if path == "info.configuration.video_info": if "(" not in data or data.startswith("sdl "): data = "(no hardware acceleration)" + summarize_setting(summary, version, seconds, f"{path}.brand", data) else: driver = data.split("(")[0].strip() @@ -106,6 +107,19 @@ def summarize_setting(summary, version, seconds, path, data): data = data.split(",")[0].split("(")[0].strip() data = data.replace("@TM@", "(TM)").replace("@R@", "(R)").replace("@C@", "(C)") + if "nvidia" in data.lower() or "geforce" in data.lower() or "quadro" in data.lower(): + brand = "NVIDIA" + elif "intel" in data.lower(): + brand = "Intel" + elif "amd " in data.lower() or "radeon" in data.lower(): + brand = "AMD" + elif "apple" in data.lower(): + brand = "Apple" + else: + brand = "(other)" + + summarize_setting(summary, version, seconds, f"{path}.brand", brand) + if path == "game.settings.resolution": width, _, height = data.partition(",") if width and height and width.isdigit() and height.isdigit():