mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-06-03 00:58:53 +02:00
Merge b4a3f8fa47
into ac3829f508
This commit is contained in:
commit
2bb287db29
|
@ -370,13 +370,19 @@ class LogAnalyser:
|
|||
raise NotImplementedError(key)
|
||||
|
||||
def __get_mods(self):
|
||||
mods_regex = re.compile(r"Found mod\s\'(.+?)\'\s(\[.+?\])")
|
||||
mods_regex = re.compile(
|
||||
r"Found\s(enabled|disabled)?\s?mod\s\'(.+?)\'\s(\[.+?\])"
|
||||
)
|
||||
matches = re.findall(mods_regex, self._log_text)
|
||||
if matches:
|
||||
mods = [{"mod": match[0], "status": match[1]} for match in matches]
|
||||
mods = [
|
||||
{"mod": match[1], "status": match[0], "type": match[2]}
|
||||
for match in matches
|
||||
]
|
||||
mods_status = [
|
||||
f"ℹ️ {i['mod']} ({'ExeFS' if i['status'] == '[E]' else 'RomFS'})"
|
||||
f"ℹ️ {i['mod']} ({'ExeFS' if i['type'] == '[E]' else 'RomFS'})"
|
||||
for i in mods
|
||||
if i["status"] == "" or i["status"] == "enabled"
|
||||
]
|
||||
# Remove duplicated mods from output
|
||||
mods_status = list(dict.fromkeys(mods_status))
|
||||
|
|
Loading…
Reference in New Issue
Block a user