Closed Morilli closed 2 years ago
Might wanna consider combining all the hardcoded paths into a for() expression at this point.
I agree, that would be cleaner. Also maybe improve the detection of "shared extension" using a regexp for instance.
Which "shared extension detection" do you mean here? This part?
shader_paths = [path for path in self.known.values() if any(extension in path for extension in shader_extensions)]
Yes. shader_extensions
and the any(...)
could be replaced by using a regexp.
Okay, have refactored a fair bit, and it works much better now imo.
.dx9sm3
extension. Might wanna consider combining all the hardcoded paths into a for() expression at this point..