From 0015a812f924ae87fb21fb89e16700eaed4fca30 Mon Sep 17 00:00:00 2001 From: Mark <36304206+Pixxel123@users.noreply.github.com> Date: Thu, 17 Feb 2022 20:44:59 +0000 Subject: [PATCH] Further fixes/improvements (#16) * Fix AF warning when Unknown * Flag FS integrity check being disabled --- robocop_ng/cogs/logfilereader.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/robocop_ng/cogs/logfilereader.py b/robocop_ng/cogs/logfilereader.py index 66e630f..013998c 100644 --- a/robocop_ng/cogs/logfilereader.py +++ b/robocop_ng/cogs/logfilereader.py @@ -49,6 +49,7 @@ class LogFileReader(Cog): "audio_backend": "Unknown", "docked": "Unknown", "expand_ram": "Unknown", + "fs_integrity": "Unknown", "ignore_missing_services": "Unknown", "memory_manager": "Unknown", "pptc": "Unknown", @@ -308,6 +309,7 @@ class LogFileReader(Cog): "audio_backend": "AudioBackend", "docked": "EnableDockedMode", "expand_ram": "ExpandRam", + "fs_integrity": "EnableFsIntegrityChecks", "ignore_missing_services": "IgnoreMissingServices", "memory_manager": "MemoryManagerMode", "pptc": "EnablePtc", @@ -530,7 +532,10 @@ class LogFileReader(Cog): firmware_warning = f"**❌ Nintendo Switch firmware not found**" self.embed["game_info"]["notes"].append(firmware_warning) - if self.embed["settings"]["anisotropic_filtering"] != "Auto": + if self.embed["settings"]["anisotropic_filtering"] not in [ + "Auto", + "Unknown", + ]: anisotropic_filtering_warning = "⚠️ Anisotropic filtering not set to `Auto` can cause graphical issues" self.embed["game_info"]["notes"].append( anisotropic_filtering_warning @@ -570,6 +575,10 @@ class LogFileReader(Cog): vsync_warning = f"⚠️ V-Sync disabled can cause instability like games running faster than intended or longer load times" self.embed["game_info"]["notes"].append(vsync_warning) + if self.embed["settings"]["fs_integrity"] == "Disabled": + fs_integrity_warning = f"⚠️ Disabling file integrity checks may cause corrupted dumps to not be detected" + self.embed["game_info"]["notes"].append(fs_integrity_warning) + mainline_version = re.compile(r"^\d\.\d\.\d+$") old_mainline_version = re.compile(r"^\d\.\d\.(\d){4}$") pr_version = re.compile(r"^\d\.\d\.\d\+([a-f]|\d){7}$")