Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On today's episode of "Sam's undiagnosed ADHD plays up", I've reworked the Main function as it was getting a bit mixed up and messy in there.
It's now been split up into 3 stages;
This seperates the detection from the output, allowing me much more freedom to preprocess and mess with the output. Also means I don't have to do any weird pre-processing with Mounts and Displays, as they could take up multiple lines.
I've also created a ModuleOutputs struct/variable, placing any values in there instead. That way if a module needs shared data from another, or if some pre-processing happens it only needs to fetch it once.
Finally I've also used this as an excuse to improve the look of suppressed errors, simply making them read "Unknown" as not to ruin the aesthetics of the output.
Performance actually sits a few nanoseconds better than before, not one of my goals with this (I was actually expecting worse) but it's nice to see.