GuidanceOfGrace / CLASSIC-Fallout4

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.
8 stars 4 forks source link

Can't stop messing around #48

Closed evildarkarchon closed 1 year ago

evildarkarchon commented 1 year ago

Moved the bulk of the code (including the embedded functions from scan_logs() to a new class. The logtext, logpath, logname, and scanpath variables are now stored there. There is a static method that is used to set up the instance of the class, it takes the file name and generates the path variables and reads the logtext, generates the loglines and returns a new class instance with this data as parameters. I've also learned that writing triple-quote strings to a file, it will preserve new-lines, but it can look odd in the code files because it also preserves tabs and spaces, so the code formatting doesn't look "pythonic".

evildarkarchon commented 1 year ago

Reverted to draft because data is not being evaluated properly.