Skip to content

Commit

Permalink
Add exception for homebrew applications (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed May 28, 2023
1 parent 8f25f13 commit ec48a71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robocop_ng/cogs/logfilereader.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ async def download_file(log_url):
@staticmethod
def is_log_valid(log_file: str) -> bool:
app_info = LogAnalyser.get_app_info(log_file)
if app_info is None:
is_homebrew = LogAnalyser.is_homebrew(log_file)
if app_info is None or is_homebrew:
return True
game_name, app_id, another_app_id, build_ids, main_ro_section = app_info
if (
Expand Down
4 changes: 4 additions & 0 deletions robocop_ng/helpers/ryujinx_log_analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class LogAnalyser:
_settings: dict[str, Optional[str]]
_notes: list[str]

@staticmethod
def is_homebrew(log_file: str) -> bool:
return re.search("LoadApplication: Loading as Homebrew", log_file) is not None

@staticmethod
def get_main_ro_section(log_file: str) -> Optional[dict[str, str]]:
ro_section_match = re.search(
Expand Down

0 comments on commit ec48a71

Please sign in to comment.