mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 20:45:41 +00:00
Add exception for homebrew applications (#54)
This commit is contained in:
parent
8f25f13eff
commit
ec48a71b9e
|
@ -64,7 +64,8 @@ class LogFileReader(Cog):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_log_valid(log_file: str) -> bool:
|
def is_log_valid(log_file: str) -> bool:
|
||||||
app_info = LogAnalyser.get_app_info(log_file)
|
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
|
return True
|
||||||
game_name, app_id, another_app_id, build_ids, main_ro_section = app_info
|
game_name, app_id, another_app_id, build_ids, main_ro_section = app_info
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -35,6 +35,10 @@ class LogAnalyser:
|
||||||
_settings: dict[str, Optional[str]]
|
_settings: dict[str, Optional[str]]
|
||||||
_notes: list[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
|
@staticmethod
|
||||||
def get_main_ro_section(log_file: str) -> Optional[dict[str, str]]:
|
def get_main_ro_section(log_file: str) -> Optional[dict[str, str]]:
|
||||||
ro_section_match = re.search(
|
ro_section_match = re.search(
|
||||||
|
|
Loading…
Reference in a new issue