Crash Log Auto-Scanner & Setup Integrity Checker for Fallout 4 / Buffout 4. Tool that extensively scans Fallout 4 game & mod files and Buffout 4 crash logs, then provides troubleshooting advice depending on what it finds.
I switched the stdout redirection to traditional python file I/O and the text concatenation to f-strings. Traditional I/O does not have implicit newlines (which I get is a convenience of stdout redirection).
Use some more of pathlib's features.
Changed the file-list building from os.listdir/fnmatch to glob. glob does in one step what the os.listdir/fnmatch does in 2.
Only import ctypes.wintypes on Windows. The only code that uses it only runs on windows, so no need to import a module that's not going to be used if the script is being run on linux.
Stop the gpu detection for loop when it finds either an amd or nvidia gpu (no need to keep searching for something you already found).
Modified the CK fixes check so that it doesn't just check for the launcher (which hasn't been bundled since v1.6 because Nexus false flags it as a virus).