From c33f4f29a2c767f4f54ad40d1a6ddd42502f6486 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:52:29 +0200 Subject: [PATCH] log_analyser: Fix homebrew detection (#78) --- robocop_ng/helpers/ryujinx_log_analyser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/robocop_ng/helpers/ryujinx_log_analyser.py b/robocop_ng/helpers/ryujinx_log_analyser.py index 4576218d..c731a0c3 100644 --- a/robocop_ng/helpers/ryujinx_log_analyser.py +++ b/robocop_ng/helpers/ryujinx_log_analyser.py @@ -37,7 +37,9 @@ class LogAnalyser: @staticmethod def is_homebrew(log_file: str) -> bool: - return re.search("LoadApplication: Loading as Homebrew", log_file) is not None + return ( + re.search("Load.*Application: Loading as [Hh]omebrew", log_file) is not None + ) @staticmethod def get_main_ro_section(log_file: str) -> Optional[dict[str, str]]: